IDisposable is an interface within the Microsoft .NET Framework's Base Class Library (BCL).
I have some code that will trigger Code Analysis warning CA1063: CA1063 : Microsoft.Design : Remove IDisposable from the list of …
c# code-analysis idisposableLet's say I have the following WCF implementation: public Stream Download(string path) { FileStream stream = new FileStream(path, FileMode.Open, …
.net wcf stream idisposableIf .NET has garbage collection then why do you have to explicitly call IDisposable?
c# garbage-collection dispose idisposableIs it possible to determine if code is currently executing in the context of a finally handler as a result …
c# exception idisposable finally try-catchSometimes I need to use several disposable objects within a function. Most common case is having StreamReader and StreamWriter but …
c# idisposable usingIs it legal to call a method on disposed object? If yes, why? In the following demo program, I've a …
c# dispose idisposableStart with these simple classes... Let's say I have a simple set of classes like this: class Bus { Driver busDriver = …
c# .net garbage-collection dispose idisposableHow can I write a unit test for a method that has a using statement? For example let assume that …
c# unit-testing idisposable legacy-codeI was surprised to find that at least one of my objects created by Ninject is not disposed of at …
entity-framework-4 asp.net-mvc-3 ninject idisposableI have the following class which is a decorator for an IDisposable object (I have omitted the stuff it adds) …
c# .net unit-testing idisposable finalizer