AlgorithmsCountWhereT Method |
Counts the number of items in the collection that satisfy the condition
defined by predicate.
Namespace: X3Platform.CollectionsAssembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntaxpublic static int CountWhere<T>(
IEnumerable<T> collection,
Predicate<T> predicate
)
public:
generic<typename T>
static int CountWhere(
IEnumerable<T>^ collection,
Predicate<T>^ predicate
)
Parameters
- collection
- Type: System.Collections.GenericIEnumerableT
The collection to count items in. - predicate
- Type: SystemPredicateT
A delegate that defines the condition to check for.
Type Parameters
- T
[Missing <typeparam name="T"/> documentation for "M:X3Platform.Collections.Algorithms.CountWhere``1(System.Collections.Generic.IEnumerable{``0},System.Predicate{``0})"]
Return Value
Type:
Int32The number of items in the collection that satisfy
predicate.
See Also