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

Dispose as delegate #144

Closed BADF00D closed 4 years ago

BADF00D commented 4 years ago

Prerequisites

Description

When using statement lamda to dispose an IDisposable, the disposing is not detected correctly.

Source Code

Screenshot

When disposing the IDisposable via lambda expression, it is correctly detected. But when used via statement lamda, the dispose class is not detected correctly.

image

BADF00D commented 4 years ago

Part of release VS2017 2.4.2 and VS2019 3.2.2