Click or drag to resize
AlgorithmsCountEqualT Method (IEnumerableT, T, IEqualityComparerT)
Counts the number of items in the collection that are equal to find.

Namespace: X3Platform.Collections
Assembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntax
public static int CountEqual<T>(
	IEnumerable<T> collection,
	T find,
	IEqualityComparer<T> equalityComparer
)

Parameters

collection
Type: System.Collections.GenericIEnumerableT
The collection to count items in.
find
Type: T
The item to compare to.
equalityComparer
Type: System.Collections.GenericIEqualityComparerT
The comparer to use to determine if two items are equal. Only the Equals member function will be called.

Type Parameters

T

[Missing <typeparam name="T"/> documentation for "M:X3Platform.Collections.Algorithms.CountEqual``1(System.Collections.Generic.IEnumerable{``0},``0,System.Collections.Generic.IEqualityComparer{``0})"]

Return Value

Type: Int32
The number of items in the collection that are equal to find.
Exceptions
ExceptionCondition
ArgumentExceptioncollection or equalityComparer is null.
See Also