ser*_*g10 5 resharper refactoring visual-studio-2008 c#-3.0
我发现自己使用Resharper的"转换为自动属性"重构很多,以删除前C#3.0样板代码.
有没有办法可以同时将它应用于单个类中的所有属性?
tan*_*ius 13
ReSharper可以这样做:
Options -> Code Cleanup -> Use auto-property, if possible
Run Code Online (Sandbox Code Playgroud)
为类运行代码清理 - 你应该完成.
| 归档时间: |
|
| 查看次数: |
2170 次 |
| 最近记录: |