protected void Dispose(bool disposing) { if (!this.IsDisposed) { ExtensionMethods.RaiseEvent(this._disposing, (object)this); this._disposing = (EventHandler)null; if (disposing) { this.DisposeManagedResources(); } this.DisposeNativeResources(); } this.IsDisposed = true; }
public static void RaiseEvent(this EventHandler eventHandler, object source) { ExtensionMethods.RaiseEvent(eventHandler, source, EventArgs.Empty); }