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
Maybe I'm a bad person for doing this, but I've been using this piece of code recently:
public static void BulkDispose(object[] objects)
{
foreach (object o in objects)
{
if (o != null)
{
if (o is IDisposable)
{
IDisposable disposable = o as IDisposable;
disposable.Dispose();
}
}
}
}