IDisposable is an interface within the Microsoft .NET Framework's Base Class Library (BCL).
I'm going through a big refactoring / speed tweaking of one of my larger MVC apps. It has been deployed to …
asp.net-mvc linq-to-sql garbage-collection idisposableI have the following code: public void Dispose() { if (_instance != null) { _instance = null; // Call GC.SupressFinalize to take this object …
c# .net garbage-collection idisposable suppressfinalizeI have a parent and child class that both need to implement IDisposable. Where should virtual (and base.Dispose()?) calls …
c# .net inheritance idisposableI think I understand the use of IntPtr, though I'm really not sure. I copied the IDisposable pattern from MSDN …
c# idisposable intptrThis class uses a StreamWriter and therefore implements IDisposable. public class Foo : IDisposable { private StreamWriter _Writer; public Foo (String path) { // …
c# idisposableRecently, I was researching some tricky bugs about object not disposed. I found some pattern in code. It is reported …
.net dispose idisposableI am using the System.Net.Http.HttpClient to do some client-side HTTP communication. I've got all of the HTTP …
c# .net stream idisposable dotnet-httpclientASP.NET Core uses extension methods on IServiceCollection to set up dependency injection, then when a type is needed it …
dependency-injection asp.net-core .net-core idisposableI've come from Java experience and am trying to start with C#. I've read SqlConnection SqlCommand SqlDataReader IDisposable and I …
c# .net connection-pooling idisposable sqlconnectionIn C# class Process inherits from class Component that implements IDisposable and so I can call Dispose() on any Process …
c# .net idisposable