ImmutableArrayExtensions::Where<T> Method (ImmutableArray<T>, Func<T, Boolean>^)
Filters a sequence of values based on a predicate.
Assembly: System.Collections.Immutable (in System.Collections.Immutable.dll)
public: generic<typename T> [ExtensionAttribute] static IEnumerable<T>^ Where( ImmutableArray<T> immutableArray, Func<T, bool>^ predicate )
Parameters
- immutableArray
-
Type:
System.Collections.Immutable::ImmutableArray<T>
The array to filter.
- predicate
-
Type:
System::Func<T, Boolean>^
The condition to use for filtering the array content.
Return Value
Type: System.Collections.Generic::IEnumerable<T>^Returns IEnumerable<T> that contains elements that meet the condition.
Type Parameters
- T
The type of element contained by the collection.
Show: