[Modify] To internal
This commit is contained in:
parent
9d164812a2
commit
6493f90238
@ -399,6 +399,17 @@ namespace WebSocketSharp
|
|||||||
eventHandler (sender, e);
|
eventHandler (sender, e);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
internal static void Emit<TEventArgs> (
|
||||||
|
this EventHandler<TEventArgs> eventHandler, object sender, TEventArgs e
|
||||||
|
)
|
||||||
|
where TEventArgs : EventArgs
|
||||||
|
{
|
||||||
|
if (eventHandler == null)
|
||||||
|
return;
|
||||||
|
|
||||||
|
eventHandler (sender, e);
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Determines whether the specified <see cref="int"/> equals the specified <see cref="char"/>,
|
/// Determines whether the specified <see cref="int"/> equals the specified <see cref="char"/>,
|
||||||
/// and invokes the specified <c>Action<int></c> delegate at the same time.
|
/// and invokes the specified <c>Action<int></c> delegate at the same time.
|
||||||
@ -1288,33 +1299,6 @@ namespace WebSocketSharp
|
|||||||
|
|
||||||
#region Public Methods
|
#region Public Methods
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Emits the specified <c>EventHandler<TEventArgs></c> delegate if it isn't
|
|
||||||
/// <see langword="null"/>.
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="eventHandler">
|
|
||||||
/// An <c>EventHandler<TEventArgs></c> to emit.
|
|
||||||
/// </param>
|
|
||||||
/// <param name="sender">
|
|
||||||
/// An <see cref="object"/> from which emits this <paramref name="eventHandler"/>.
|
|
||||||
/// </param>
|
|
||||||
/// <param name="e">
|
|
||||||
/// A <c>TEventArgs</c> that represents the event data.
|
|
||||||
/// </param>
|
|
||||||
/// <typeparam name="TEventArgs">
|
|
||||||
/// The type of the event data generated by the event.
|
|
||||||
/// </typeparam>
|
|
||||||
public static void Emit<TEventArgs> (
|
|
||||||
this EventHandler<TEventArgs> eventHandler, object sender, TEventArgs e
|
|
||||||
)
|
|
||||||
where TEventArgs : EventArgs
|
|
||||||
{
|
|
||||||
if (eventHandler == null)
|
|
||||||
return;
|
|
||||||
|
|
||||||
eventHandler (sender, e);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the description of the specified HTTP status code.
|
/// Gets the description of the specified HTTP status code.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
Loading…
Reference in New Issue
Block a user