diff --git a/websocket-sharp/Ext.cs b/websocket-sharp/Ext.cs index d43f4952..027a9b43 100644 --- a/websocket-sharp/Ext.cs +++ b/websocket-sharp/Ext.cs @@ -399,6 +399,17 @@ namespace WebSocketSharp eventHandler (sender, e); } + internal static void Emit ( + this EventHandler eventHandler, object sender, TEventArgs e + ) + where TEventArgs : EventArgs + { + if (eventHandler == null) + return; + + eventHandler (sender, e); + } + /// /// Determines whether the specified equals the specified , /// and invokes the specified Action<int> delegate at the same time. @@ -1288,33 +1299,6 @@ namespace WebSocketSharp #region Public Methods - /// - /// Emits the specified EventHandler<TEventArgs> delegate if it isn't - /// . - /// - /// - /// An EventHandler<TEventArgs> to emit. - /// - /// - /// An from which emits this . - /// - /// - /// A TEventArgs that represents the event data. - /// - /// - /// The type of the event data generated by the event. - /// - public static void Emit ( - this EventHandler eventHandler, object sender, TEventArgs e - ) - where TEventArgs : EventArgs - { - if (eventHandler == null) - return; - - eventHandler (sender, e); - } - /// /// Gets the description of the specified HTTP status code. ///