A method has a disposable object (an object created from a class that
IDisposable) and is not disposing the object through
Dispose call or a
The variable cannot be saved to a field or returned.
A code fix will be presented to you that will transform the code, it will wrap
the object creation expression in a
using block if the scope allows it, like so:
If the scope does not allow for a
using block it will simply add a
to the end of the method.