How to use short cut keys to insert get set code of data member in visual studio?
How to use short cut keys to insert get set code of data member in visual studio?
I think it i开发者_C百科s some tab.
Try to type "prop" and press twice TAB and you'll see someting cool. (at least for me)
To get the full property for the getter and setter method type "propfull" and tab twice. This will generate private and public field and property as following
private int myVar;
public int MyProperty
{
get { return myVar; }
set { myVar = value; }
}
精彩评论