Shortcut way of getting the Syntax of Property in Visual Studio 2010

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.