Ask Learn
Preview
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Any<T>(ImmutableArray<T>) |
Gets a value indicating whether the array contains any elements. |
Any<T>(ImmutableArray<T>.Builder) |
Returns a value indicating whether this collection contains any elements. |
Any<T>(ImmutableArray<T>, Func<T,Boolean>) |
Gets a value indicating whether the array contains any elements that match a specified condition. |
Gets a value indicating whether the array contains any elements.
public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
static bool Any(System::Collections::Immutable::ImmutableArray<T> immutableArray);
public static bool Any<T>(this System.Collections.Immutable.ImmutableArray<T> immutableArray);
static member Any : System.Collections.Immutable.ImmutableArray<'T> -> bool
<Extension()>
Public Function Any(Of T) (immutableArray As ImmutableArray(Of T)) As Boolean
The type of element contained by the collection.
The array to check for elements.
true
if the array contains an elements; otherwise, false
.
Product | Versions |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10 |
.NET Framework | 4.6.2 (package-provided), 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided) |
.NET Standard | 2.0 (package-provided) |
UWP | 10.0 |
Returns a value indicating whether this collection contains any elements.
public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
static bool Any(System::Collections::Immutable::ImmutableArray<T>::Builder ^ builder);
public static bool Any<T>(this System.Collections.Immutable.ImmutableArray<T>.Builder builder);
static member Any : System.Collections.Immutable.ImmutableArray<'T>.Builder -> bool
<Extension()>
Public Function Any(Of T) (builder As ImmutableArray(Of T).Builder) As Boolean
The type of elements in the array.
The builder to check for matches.
true
if the array builder contains any elements; otherwise, false
.
Product | Versions |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10 |
.NET Framework | 4.6.2 (package-provided), 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided) |
.NET Standard | 2.0 (package-provided) |
UWP | 10.0 |
Gets a value indicating whether the array contains any elements that match a specified condition.
public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
static bool Any(System::Collections::Immutable::ImmutableArray<T> immutableArray, Func<T, bool> ^ predicate);
public static bool Any<T>(this System.Collections.Immutable.ImmutableArray<T> immutableArray, Func<T,bool> predicate);
static member Any : System.Collections.Immutable.ImmutableArray<'T> * Func<'T, bool> -> bool
<Extension()>
Public Function Any(Of T) (immutableArray As ImmutableArray(Of T), predicate As Func(Of T, Boolean)) As Boolean
The type of element contained by the collection.
The array to check for elements.
true
if an element matches the specified condition; otherwise, false
.
Product | Versions |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10 |
.NET Framework | 4.6.2 (package-provided), 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided) |
.NET Standard | 2.0 (package-provided) |
UWP | 10.0 |
.NET feedback
.NET is an open source project. Select a link to provide feedback:
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign in