Why do we need to call CG.SupressFinalize?
Hi , Requests that the system not call the finalizer method for the specified object.
public static void SuppressFinalize(
); The method removes obj from the set of objects that require finalization. The obj parameter is required to be the caller of this method.
Objects that implement the IDisposable interface can call this method from the IDisposable.Dispose method to prevent the garbage collector from calling Object.Finalize on an object that does not require it
Leave a Reply
You must be logged in to post a comment.