我们如何在Visual Studio中生成getter和setter? [英] How can we generate getters and setters in Visual Studio?
本文介绍了我们如何在Visual Studio中生成getter和setter?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
生成"是指自动生成特定选择的(一组)变量所必需的代码.
By "generate", I mean auto-generation of the code necessary for a particular selected (set of) variable(s).
但欢迎您对好的做法进行更明确的说明或评论.
But any more explicit explication or comment on good practice is welcome.
推荐答案
您也可以只使用 Ctrl + K , X 键入prop
,然后按两次 Tab .
Rather than using Ctrl + K, X you can also just type prop
and then hit Tab twice.
这篇关于我们如何在Visual Studio中生成getter和setter?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文