Exemple #1
0
 private void method_12(object sender, EventArgs e)
 {
     this.District = null;
     this.Invasion = null;
     lock (((ICollection)Class142.dictionary_0).SyncRoot)
     {
         if (Class142.dictionary_0.ContainsKey(this))
         {
             Class142.dictionary_0.Remove(this);
         }
     }
     if (this.eventHandler_7 != null)
     {
         this.eventHandler_7(this, null);
     }
     lock (((ICollection)Class142.dictionary_1).SyncRoot)
     {
         if (Class142.dictionary_1.ContainsKey(this))
         {
             Class142.dictionary_1[this] = null;
         }
         else
         {
             Class142.dictionary_1.Add(this, null);
         }
     }
     Class142.smethod_7(this, null);
 }
Exemple #2
0
 // Token: 0x060028D2 RID: 10450 RVA: 0x0009A404 File Offset: 0x00098604
 protected override void vmethod_0()
 {
     lock (((ICollection)Class142.list_1).SyncRoot)
     {
         if (Class142.list_1.Contains(this))
         {
             Class142.list_1.Remove(this);
         }
     }
     lock (((ICollection)this.list_2).SyncRoot)
     {
         this.list_2.Clear();
     }
     lock (((ICollection)Class142.dictionary_1).SyncRoot)
     {
         if (Class142.dictionary_1.ContainsKey(this))
         {
             Class142.dictionary_1.Remove(this);
         }
     }
     this.District = null;
     Class142.smethod_0();
     if (this.eventHandler_7 != null)
     {
         this.eventHandler_7(this, new EventArgs37(null));
     }
     Class142.smethod_4(this);
     Class142.smethod_7(this, null);
     this.ToonTownProcess.Dispose();
     base.vmethod_0();
 }