CountOccurences
Counts the occurences of a value in a collection.
- Use
IEnumerable.Count()in combination withEqualityComparer<T>.Default.Equals()to compare each value in theIEnumerablewithel.
Counts the occurences of a value in a collection.
IEnumerable.Count() in combination with EqualityComparer<T>.Default.Equals() to compare each value in the IEnumerable with el.