gpt4 book ai didi

visual-studio-2008 - 一次在多个属性上使用 "convert to auto property"

转载 作者:行者123 更新时间:2023-12-04 16:37:45 24 4
gpt4 key购买 nike

我发现自己使用 Resharper 的“转换为自动属性”进行了大量重构以删除 C# 3.0 之前的样板代码。

有什么方法可以将其应用于 单个类中的所有属性 立刻?

最佳答案

ReSharper 可以做到这一点:

Options -> Code Cleanup -> Use auto-property, if possible

为类运行代码清理 - 你应该完成。

关于visual-studio-2008 - 一次在多个属性上使用 "convert to auto property",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/915073/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com