Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

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;}
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #underscore #variable
ADD COMMENT
Topic
Name
3+2 =