[Modify] Polish it
This commit is contained in:
parent
678845433b
commit
86cd0ec022
@ -197,11 +197,14 @@ namespace WebSocketSharp
|
|||||||
: stream.ToByteArray ();
|
: stream.ToByteArray ();
|
||||||
}
|
}
|
||||||
|
|
||||||
internal static bool Contains<T> (this IEnumerable<T> source, Func<T, bool> condition)
|
internal static bool Contains<T> (
|
||||||
|
this IEnumerable<T> source, Func<T, bool> condition
|
||||||
|
)
|
||||||
{
|
{
|
||||||
foreach (T elm in source)
|
foreach (T elm in source) {
|
||||||
if (condition (elm))
|
if (condition (elm))
|
||||||
return true;
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user