Dispose(bool disposing) { if (this.alive) { Unmanaged.FreeLibrary(this.library); this.library = IntPtr.Zero; this.alive = false; } }
Dispose(bool disposing) { if (this.alive) { this.alive = false; foreach (IntPtr l in this.handles) { Unmanaged.FreeLibrary(l); } this.handles.Clear(); } }