[Modify] To internal
This commit is contained in:
parent
44129b0c75
commit
9d164812a2
@ -389,6 +389,16 @@ namespace WebSocketSharp
|
|||||||
: stream.ToByteArray ();
|
: stream.ToByteArray ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
internal static void Emit (
|
||||||
|
this EventHandler eventHandler, object sender, EventArgs e
|
||||||
|
)
|
||||||
|
{
|
||||||
|
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.
|
||||||
@ -1278,28 +1288,6 @@ namespace WebSocketSharp
|
|||||||
|
|
||||||
#region Public Methods
|
#region Public Methods
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Emits the specified <see cref="EventHandler"/> delegate if it isn't <see langword="null"/>.
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="eventHandler">
|
|
||||||
/// A <see cref="EventHandler"/> to emit.
|
|
||||||
/// </param>
|
|
||||||
/// <param name="sender">
|
|
||||||
/// An <see cref="object"/> from which emits this <paramref name="eventHandler"/>.
|
|
||||||
/// </param>
|
|
||||||
/// <param name="e">
|
|
||||||
/// A <see cref="EventArgs"/> that contains no event data.
|
|
||||||
/// </param>
|
|
||||||
public static void Emit (
|
|
||||||
this EventHandler eventHandler, object sender, EventArgs e
|
|
||||||
)
|
|
||||||
{
|
|
||||||
if (eventHandler == null)
|
|
||||||
return;
|
|
||||||
|
|
||||||
eventHandler (sender, e);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Emits the specified <c>EventHandler<TEventArgs></c> delegate if it isn't
|
/// Emits the specified <c>EventHandler<TEventArgs></c> delegate if it isn't
|
||||||
/// <see langword="null"/>.
|
/// <see langword="null"/>.
|
||||||
|
Loading…
Reference in New Issue
Block a user