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

JsonTextWriter #32

Closed dscopra closed 7 years ago

dscopra commented 7 years ago

On Dispose of JsonTextWriter, the Close method is called which disposes the given StreamWriter. So it should not yield a "not disposed" warning.

_writer = new JsonTextWriter(new StreamWriter(stream, encoding, buffer_size, leave_open));

BADF00D commented 7 years ago

Basically JsonTextWriter had to be added to list of tracking types. For this, I need the full namespace of this type, all signatures of the constructors and which of them are tracking or not.

dscopra commented 7 years ago

Newtonsoft.Json.JsonTextWriter(System.IO.TextWriter) Newtonsoft.Json.Bson.BsonWriter(System.IO.BinaryWriter) Newtonsoft.Json.Bson.BsonWriter(System.IO.Stream)