Answers for "c# underscore variable"

C#
0

c# underscore variable

// 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;}
}
Posted by: Guest on December-10-2021

C# Answers by Framework

Browse Popular Code Answers by Language