Closed dscopra closed 7 years ago
When initializing a property that implements IDisposable, I got a diagnostic that tells: "Field is not disposed". But this is a property, not a field.
public class SomeCode{ public IDisposable Property { get; } public SomeCode() { Property = new MemoryStream();//wrong diagnostic } }
Prerequisites
Description
When initializing a property that implements IDisposable, I got a diagnostic that tells: "Field is not disposed". But this is a property, not a field.
Source Code
Screenshot