开发者

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; }
    }
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜