Open dscopra opened 7 years ago
var memstreams= new []{ new MemoryStream(), new MemoryStream(), } foreach(var memsteam in memstreams){ mestream.Dispose(); }
Each memstream is individually marked as not disposed, But they are tracked by the array memstreams and are disposed later.
Notification can be suppressed if declaration is part of an array that is part of an invocation to a tracking type/method/ctor.
Each memstream is individually marked as not disposed, But they are tracked by the array memstreams and are disposed later.