简体   繁体   English

将常规属性转换为自动实现的属性

[英]Converting Regular Properties to Auto-Implemented Properties

I'm upgrading an old C# code-base and would like to convert the regular properties to auto-implemented properties. 我正在升级旧的C#代码库,并希望将常规属性转换为自动实现的属性。 Can this be done from Visual Studio? 可以从Visual Studio完成吗?

我不认为在VS中有一个内置方法可以做到这一点,但你可以使用像ReSharper这样的工具来进行这种重构。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM