ImmutableArrayExtensions.Any Method
Definition
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.
Overloads
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. |
Any<T>(ImmutableArray<T>)
- Source:
- ImmutableArrayExtensions.cs
- Source:
- ImmutableArrayExtensions.cs
- Source:
- ImmutableArrayExtensions.cs
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
Type Parameters
- T
The type of element contained by the collection.
Parameters
- immutableArray
- ImmutableArray<T>
The array to check for elements.
Returns
true
if the array contains an elements; otherwise, false
.
Applies to
Any<T>(ImmutableArray<T>.Builder)
- Source:
- ImmutableArrayExtensions.cs
- Source:
- ImmutableArrayExtensions.cs
- Source:
- ImmutableArrayExtensions.cs
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
Type Parameters
- T
The type of elements in the array.
Parameters
- builder
- ImmutableArray<T>.Builder
The builder to check for matches.
Returns
true
if the array builder contains any elements; otherwise, false
.
Applies to
Any<T>(ImmutableArray<T>, Func<T,Boolean>)
- Source:
- ImmutableArrayExtensions.cs
- Source:
- ImmutableArrayExtensions.cs
- Source:
- ImmutableArrayExtensions.cs
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
Type Parameters
- T
The type of element contained by the collection.
Parameters
- immutableArray
- ImmutableArray<T>
The array to check for elements.
Returns
true
if an element matches the specified condition; otherwise, false
.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기