Click or drag to resize
AlgorithmsTrueForAllT Method
Determines if all of the items in the collection satisfy the condition defined by predicate.

Namespace: X3Platform.Collections
Assembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntax
public static bool TrueForAll<T>(
	IEnumerable<T> collection,
	Predicate<T> predicate
)

Parameters

collection
Type: System.Collections.GenericIEnumerableT
The collection to check all the 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.TrueForAll``1(System.Collections.Generic.IEnumerable{``0},System.Predicate{``0})"]

Return Value

Type: Boolean
True if all of the items in the collection satisfy the condition defined by predicate, or if the collection is empty. False if one or more items in the collection do not satisfy predicate.
See Also