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.