Closed dscopra closed 7 years ago
When assigning an IDisposable to a local variable and adding it to a CompositeDisposable later, it is not detected as disposed
var disposable = new CompositeDisposable(); var mem = new MemoryStream(); disposable.Add(mem); disposable.Dispose();
Prerequisites
Description
When assigning an IDisposable to a local variable and adding it to a CompositeDisposable later, it is not detected as disposed
Source Code
Screenshot