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

Add support for C#8 using declaration #114

Closed BADF00D closed 4 years ago

BADF00D commented 5 years ago

Prerequisites

Description

Besides the already known using statement using(var mem = new MemoryStream()){} or using(var mem = new MemoryStream() C# 8 will support using declarations: using var mem = new MemoryStream()

This should also be detected as a valid dispose call.

For more information, have a look at this post

Source Code

Screenshot

BADF00D commented 4 years ago

Part of release 3.1.0