In this blog we are going to see the shortcut to get syntax of property.
Type βpropβ and Press Tab which gives
the below automatic property
public TYPE Type { get; set; }
Then you can change your data type
public string
myString {get; set;}
Type βpropfullβ , then press Tab , you
get the full property and its private variable.
private int
myVar;
public int MyProperty
{
get { return myVar; }
set { myVar = value;
}
}
Thanks for reading this article. Have a nice day.