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

False positive within lamdas #46

Closed BADF00D closed 7 years ago

BADF00D commented 7 years ago
    internal class Program
    {
        public static void Main(string[] args)
        {
            Func<MemoryStream> openStream = () => new MemoryStream();
            Func<int, MemoryStream> openStream2 = i => new MemoryStream();
        }
    }

image

BADF00D commented 7 years ago

Solved in #43