Trouble understanding IDisposable
-
I just need a quick answer to this question. If I have a custom class that implements IDisposable, in my void Dispose(){}; function whats supposed to go in there? Do I null all the resources I am using? Any help would be appreciated.
There are many good articles at codeproject about the IDisposable pattern. I strongly suggest you read them :)
Giorgi Dalakishvili #region signature My Articles Asynchronous Registry Notification Using Strongly-typed WMI Classes in .NET [^] My blog #endregion
-
I just need a quick answer to this question. If I have a custom class that implements IDisposable, in my void Dispose(){}; function whats supposed to go in there? Do I null all the resources I am using? Any help would be appreciated.
This is a really good article by Marc Clifton[^]
-
I just need a quick answer to this question. If I have a custom class that implements IDisposable, in my void Dispose(){}; function whats supposed to go in there? Do I null all the resources I am using? Any help would be appreciated.
Whatever you want; it doesn't need to do anything if there's nothing to do. I tend to empty collections there.