IDisposable is an interface within the Microsoft .NET Framework's Base Class Library (BCL).
There are lots of questions about managed vs unmanaged resources. I understand the basic definition of the two. However, I …
c# .net resources idisposableI have a class that makes use of temporary files (Path.GetTempFileName()) while it is active. I want to make …
c# .net idisposable temporary-filesI know that similar question was asked several times (for example: here, here,here and here) but it was for …
c# .net inversion-of-control unity-container idisposableStarting from the follwing situation: public interface ISample { } public class SampleA : ISample { // has some (unmanaged) resources that needs to be …
c# .net dispose idisposableShould implementations of IDisposable make Dispose() safe to call multiple times? Or the opposite? What approach to most .NET Framework …
c# .net idisposableIs there any guidance or best practices around who should call Dispose() on disposable objects when they have been passed …
c# .net idisposableI'm finally wrapping my head around IoC and DI in C#, and am struggling with some of the edges. I'm …
c# inversion-of-control unity-container idisposableBelow is some sample code written by a colleague. This seems obviously wrong to me but I wanted to check. …
c# .net web-services dispose idisposableI have some code like, this code is used very heavily: using (HttpWebResponse r = _GetHttpWebResponse(uri, body, method, contentType, headers)) { /* …
.net garbage-collection idisposableI have a class DocumentGenerator which wraps a MemoryStream. So I have implemented IDisposable on the class. I can't see …
c# asp.net asp.net-mvc streaming idisposable