Example #1
0
 public void Dispose(bool fDisposing)
 {
     if (this.HashValue != IntPtr.Zero)
     {
         Marshal.FreeCoTaskMem(this.HashValue);
         this.HashValue = IntPtr.Zero;
     }
     if (fDisposing)
     {
         if (this.MuiMapping != null)
         {
             this.MuiMapping.Dispose(true);
             this.MuiMapping = null;
         }
         GC.SuppressFinalize(this);
     }
 }
Example #2
0
 public void Dispose(bool fDisposing)
 {
     if (this.HashValue != IntPtr.Zero)
     {
         Marshal.FreeCoTaskMem(this.HashValue);
         this.HashValue = IntPtr.Zero;
     }
     if (!fDisposing)
     {
         return;
     }
     if (this.MuiMapping != null)
     {
         this.MuiMapping.Dispose(true);
         this.MuiMapping = (MuiResourceMapEntry)null;
     }
     GC.SuppressFinalize((object)this);
 }