[Modify] Polish it
This commit is contained in:
parent
bdb759c4e1
commit
9c47c1e861
@ -1854,8 +1854,14 @@ namespace WebSocketSharp
|
|||||||
/// </param>
|
/// </param>
|
||||||
public static void Times (this ulong n, Action action)
|
public static void Times (this ulong n, Action action)
|
||||||
{
|
{
|
||||||
if (n > 0 && action != null)
|
if (n <= 0)
|
||||||
n.times (action);
|
return;
|
||||||
|
|
||||||
|
if (action == null)
|
||||||
|
return;
|
||||||
|
|
||||||
|
for (ulong i = 0; i < n; i++)
|
||||||
|
action ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
Loading…
Reference in New Issue
Block a user