“LockSlimInFinalizer” (Solution)

Answer

~Foo: start
Exception: SynchronizationLockException
~Foo: finish

Explanation

A SynchronizationLockException will be thrown because the finalizer will be called from the GC thread.

Problem

Last updated