如何生成在Visual Studio getter和setter方法​​? [英] How to generate getters and setters in Visual Studio?

查看:548
本文介绍了如何生成在Visual Studio getter和setter方法​​?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通过生成,我的意思是自动生成选择$ C $必需的particuliar的c(套)变量(S)。

By "generate", I mean auto-generation of the code necessary for a particuliar selected (set of) variable(s).

但良好做法的更明确的解释或评论是值得欢迎的。

But any more explicit explication or comment on good practice is welcome.

推荐答案

而不是使用<大骨节病> CTRL + <大骨节病> K ,<大骨节病> X 您也可以直接键入键,然后按Tab键两次

Rather than using ctrl+k,x you can also just type prop and then hit tab twice

这篇关于如何生成在Visual Studio getter和setter方法​​?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆