[Modify] Remove it
This commit is contained in:
parent
2cf8ea9055
commit
89a01d3dc7
@ -1764,27 +1764,6 @@ namespace WebSocketSharp
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Executes the specified delegate <paramref name="n"/> times.
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="n">
|
|
||||||
/// A <see cref="ulong"/> that specifies the number of times to execute.
|
|
||||||
/// </param>
|
|
||||||
/// <param name="action">
|
|
||||||
/// An <see cref="Action"/> delegate to execute.
|
|
||||||
/// </param>
|
|
||||||
public static void Times (this ulong n, Action action)
|
|
||||||
{
|
|
||||||
if (n == 0)
|
|
||||||
return;
|
|
||||||
|
|
||||||
if (action == null)
|
|
||||||
return;
|
|
||||||
|
|
||||||
for (ulong i = 0; i < n; i++)
|
|
||||||
action ();
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Executes the specified delegate <paramref name="n"/> times.
|
/// Executes the specified delegate <paramref name="n"/> times.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
Loading…
Reference in New Issue
Block a user