This method sets a bit in the object header of obj, which the runtime checks when calling finalizers. Objects that implement the IDisposable interface can call this method from the object's IDisposable.Dispose implementation to prevent the garbage collector from calling Object.Finalize on an object that does not require it.
This method sets a bit in the object header of obj, which the runtime checks when calling finalizers.
Objects that implement the IDisposable interface can call this method from the object's IDisposable.Dispose implementation to prevent the garbage collector from calling Object.Finalize on an object that does not require it.
Doc: https://learn.microsoft.com/en-us/dotnet/api/system.gc.suppressfinalize