I’m working on a piece of library code around IDisposable. The managed path (via using) is easily testable. I’m wondering about the finalizer though: Is calling System.GC.Collect() sufficient to force the finalizer to run?
I’m working on a piece of library code around IDisposable . The managed path
Share
No, the GC.Collect() call is asynchronous, you would also need to call this: