How can I make all of the IDisposable classes colored differently in the Visual Studio IDE?

前端 未结 7 1362
小蘑菇
小蘑菇 2021-01-07 21:47

Title covers it all. I\'d like classes which implement IDisposable to show up in a specific color so I can know if I should wrap them in a using block. Is there a setting

相关标签:
7条回答
  • 2021-01-07 22:18

    I am not sure, if FXCop or StyleCop can do this already. But then, it will be a post-compile suggestion/warning.

    Resharper suggests this, I guess.

    0 讨论(0)
提交回复
热议问题