1

[I have searched similar questions, but most of them seem at least 5 years old. The most near seemed this answer but it is not clear answer and is 5yrs old]

My question: What should we do if we want Visual Studio showed (I)Disposable variables and properties with different color (or somehow visually noticeable) in IDE? For example, I easily spoted all such cases in VisualStudio:

var x = new XYZ();  //XYZ has .dispose() method
// or
var x = otherType.ToXYZ();
// or
var x = anotherVariableFromOtherClass;  //so this `anotherVariable` has also dispose() 

I have tried Resharper (but couldn't achieve using the above referred answer). I am also ok with free/simple approaches outside of Resharper too.

T.Todua
  • 53,146
  • 19
  • 236
  • 237
  • How I can't bear contr-questions `why do you need that`... :/ I am searching for solution for question. reason doesn't matter. – T.Todua Jun 03 '20 at 13:30
  • 1
    as per the question you referred it is not possible currently unless it is in built within language services by MS – Ehsan Sajjad Jun 04 '20 at 05:18

0 Answers0