Пример #1
0
 Dispose(bool disposing)
 {
     if (this.alive)
     {
         Unmanaged.FreeLibrary(this.library);
         this.library = IntPtr.Zero;
         this.alive   = false;
     }
 }
Пример #2
0
 Dispose(bool disposing)
 {
     if (this.alive)
     {
         this.alive = false;
         foreach (IntPtr l in this.handles)
         {
             Unmanaged.FreeLibrary(l);
         }
         this.handles.Clear();
     }
 }