ImmutableArrayExtensions::Any<T> Method (ImmutableArray<T>, Func<T, Boolean>^)

 

Gets a value indicating whether the array contains any elements that match a specified condition.

Namespace:   System.Linq
Assembly:  System.Collections.Immutable (in System.Collections.Immutable.dll)

public:
generic<typename T>
[ExtensionAttribute]
static bool Any(
	ImmutableArray<T> immutableArray,
	Func<T, bool>^ predicate
)

Parameters

immutableArray
Type: System.Collections.Immutable::ImmutableArray<T>

The array to check for elements.

predicate
Type: System::Func<T, Boolean>^

The delegate that defines the condition to match to an element.

Return Value

Type: System::Boolean

true if an element matches the specified condition; otherwise, false.

Type Parameters

T

The type of element contained by the collection.

Return to top
Show: