3 ms·
Thankfully the worst of those problems is the easiest to deal with. Put a call to GC.KeepAlive(this) at the end of your constructor. At least then you'll have
by Dylan16807 12y ago
Thankfully the worst of those problems is the easiest to deal with. Put a call to GC.KeepAlive(this) at the end of your constructor. At least then you'll have some sanity in the case that the finalizer runs.