static void RuntimeCore_UnregisteringAssembly(object sender, UnregisteringAssemblyEventArgs e) { if (e.Assembly == Assembly.GetExecutingAssembly()) { corpsesNotoriety = null; } }
void RuntimeCore_UnregisteringAssembly(object sender, UnregisteringAssemblyEventArgs e) { if (e.Assembly == Assembly.GetExecutingAssembly()) { // Stop thread Stop(); } }