📜  c# 下划线变量 - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:14.329000             🧑  作者: Mango

代码示例1
// The underscore before a variable name is a naming convention 
// _val, is used when defining
// the private member variable for a public property.

// Example usage:
private string _val;
public string Values
{
    get { return _val;}
    set {_val = value;}
}