From 6493f902389dd77d941b2bf9eb2cd6140943347f Mon Sep 17 00:00:00 2001 From: sta Date: Mon, 30 Dec 2019 20:15:05 +0900 Subject: [PATCH] [Modify] To internal --- websocket-sharp/Ext.cs | 38 +++++++++++--------------------------- 1 file changed, 11 insertions(+), 27 deletions(-) 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. ///