Closed lsoft closed 3 years ago
the first action should be to create unit test, may be with GC.Collect
after the digging into the code, I decided not to invoke Dispose
in finalizers, due to it's a bad practice. may be some warning might be useful, but what the place it write to? Debug.WriteLine
? who reads it? :)
if the user forgot to dispose custom scope object, we need to invoke dispose in finalization method. so custom scope object should implement full-blown dispose pattern with finalization machnery on.
after implementing, you need to update readme.md (section custom scope).