BADF00D / DisposableFixer

This is a Visual Studio Extension and NuGet package that should identify and fix problems as memleaks while using IDisposables.
Other
35 stars 7 forks source link

Message in diagnostic for undisposed auto-property is missleading #53

Closed dscopra closed 7 years ago

dscopra commented 7 years ago

Prerequisites

Description

Disposable auto properties that are not disposed have a missleading diagnostic message: "The ObjectCreation returns a object that is not disposed". It should be called something like "Property not disposed".

Source Code

public class SomeCode{
    public IDisposable Property {get;} = new MemoryStream();
}

Screenshot

image