Click or drag to resize
AlgorithmsCountEqualT Method (IEnumerableT, T)
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
)

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: Int32
The number of items in the collection that are equal to find.
Remarks
The default sense of equality for T is used, as defined by T's implementation of IComparable<T>.Equals or object.Equals.
See Also