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

IDisposable properties are not recognized as not disposed #54

Closed dscopra closed 7 years ago

dscopra commented 7 years ago

Prerequisites

Description

The ObjectCreation within the property is not recognized as not disposed.

Source Code

public class SomeClass{
    public IDisposable Property {
        get {
            return new MemoryStream();
        }
    }
}

Screenshot

image