FreeDataSlot() private method

private FreeDataSlot ( int slot ) : void
slot int
return void
Example #1
0
 /// <summary>Ensures that resources are freed and other cleanup operations are performed when the garbage collector reclaims the <see cref="T:System.LocalDataStoreSlot" /> object. </summary>
 // Token: 0x06000FE1 RID: 4065 RVA: 0x0003054C File Offset: 0x0002E74C
 protected override void Finalize()
 {
     try
     {
         LocalDataStoreMgr mgr = this.m_mgr;
         if (mgr != null)
         {
             int slot = this.m_slot;
             this.m_slot = -1;
             mgr.FreeDataSlot(slot, this.m_cookie);
         }
     }
     finally
     {
         base.Finalize();
     }
 }