AlgorithmsCountEqualT Method (IEnumerableT, T, IEqualityComparerT) |
Counts the number of items in the collection that are equal to find.
Namespace: X3Platform.CollectionsAssembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntaxpublic static int CountEqual<T>(
IEnumerable<T> collection,
T find,
IEqualityComparer<T> equalityComparer
)
public:
generic<typename T>
static int CountEqual(
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:
Int32The number of items in the collection that are equal to
find.
Exceptions
See Also