Shortcut to create properties in C# Visual Studio?
There are 2 ways to generate getter and setter properties in C#Using prop
Typeprop
and then press Tab on your keyboard twice, it will generate the following:public TYPE Type { get; set; }
public string myString {get; set;}
Using propfull
Typepropfull
and then press Tab on your keyboard twice, it will generate the following:private int myVar;
public int MyProperty
{
get { return myVar;}
set { myVar = value;}
}