AlgorithmsCountEqualT Method (IEnumerableT, T) |
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
)
public:
generic<typename T>
static int CountEqual(
IEnumerable<T>^ collection,
T find
)
Parameters
- collection
- Type: System.Collections.GenericIEnumerableT
The collection to count items in. - find
- Type: T
The item to compare to.
Type Parameters
- T
[Missing <typeparam name="T"/> documentation for "M:X3Platform.Collections.Algorithms.CountEqual``1(System.Collections.Generic.IEnumerable{``0},``0)"]
Return Value
Type:
Int32The number of items in the collection that are equal to
find.
RemarksThe default sense of equality for T is used, as defined by T's
implementation of IComparable<T>.Equals or object.Equals.
See Also