4 ms·
I wasn't suggesting calling the dispose method in the finalizer (that is evil), rather setting a flag in the dispose method that indicates whether it was called
by StillBored 11y ago
I wasn't suggesting calling the dispose method in the finalizer (that is evil), rather setting a flag in the dispose method that indicates whether it was called. Then logging a message/whatever in the finalizer if that flag isn't set.
AKA, using it as a debugging aid.