IEnumerableEx ​
Kind: Static class
Namespace: CrowdControl.Common
Public Static Functions
IEnumerable
ConcatMany<T>(IEnumerable> collection, IEnumerable> toJoin)
IEnumerable
ConcatMany<T>(IEnumerable collection, IEnumerable> toJoin)
IEnumerable
ConcatMany<T>(IEnumerable> collection, IEnumerable toJoin)
IEnumerable
EmptyIfNull<T>(IEnumerable collection)
IEnumerable
WhereAny<T>(IEnumerable> collection, Func predicate)
IEnumerable
WhereAll<T>(IEnumerable> collection, Func predicate)
IEnumerable
Except<TSource>(IEnumerable source, TSource value)
bool
ContainsAll<TSource>(IEnumerable source, IEnumerable set)
IEnumerable
WhereNot<TSource>(IEnumerable source, Func predicate)
bool
ContainsSequence<TSource>(IEnumerable source, IEnumerable sequence, IEqualityComparer comparer = null)
T
TakeRandom<T>(IEnumerable source)
IEnumerable
CrossProduct<T>(IEnumerable> source)
K
CrossProduct<T, K>(IEnumerable> source, Func>, K> joiner)
int
IndexOfKey<K, V>(IEnumerable> enumerable, K key)
IEnumerable
DistinctBy<TSource, TKey>(IEnumerable source, Func keySelector, IEqualityComparer comparer)
byte
GetChecksum(Span array)
bool
Overlaps<T>(IEnumerable arr, IEnumerable other)
bool
Overlaps<T>(IEnumerable arr, IEnumerable other, IEqualityComparer comparer)
int
IndexOf<T>(IEnumerable sequence, Predicate predicate)
