[Modify] Polish it
This commit is contained in:
parent
678845433b
commit
86cd0ec022
@ -197,11 +197,14 @@ namespace WebSocketSharp
|
||||
: 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))
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user