Shortcut to create properties in Visual Studio
Type “prop” and then press tab twice:
public int MyProperty { get; set; }
“propfull”, then tab twice, will generate the field and the full property.
private int myVar;
public int MyProperty
{
get { return myVar;}
set { myVar = value;}
}
Trackback URI |