Прочетете на английски Редактиране

Споделяне чрез


ImmutableArrayExtensions.Any Method

Definition

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
Source:
ImmutableArrayExtensions.cs

Gets a value indicating whether the array contains any elements.

C#
public static bool Any<T>(this System.Collections.Immutable.ImmutableArray<T> immutableArray);

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

.NET 10 и други версии
Продукт Версии
.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 Standard 2.0 (package-provided)
UWP 10.0

Any<T>(ImmutableArray<T>.Builder)

Source:
ImmutableArrayExtensions.cs
Source:
ImmutableArrayExtensions.cs
Source:
ImmutableArrayExtensions.cs
Source:
ImmutableArrayExtensions.cs

Returns a value indicating whether this collection contains any elements.

C#
public static bool Any<T>(this System.Collections.Immutable.ImmutableArray<T>.Builder builder);

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

.NET 10 и други версии
Продукт Версии
.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 Standard 2.0 (package-provided)
UWP 10.0

Any<T>(ImmutableArray<T>, Func<T,Boolean>)

Source:
ImmutableArrayExtensions.cs
Source:
ImmutableArrayExtensions.cs
Source:
ImmutableArrayExtensions.cs
Source:
ImmutableArrayExtensions.cs

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

C#
public static bool Any<T>(this System.Collections.Immutable.ImmutableArray<T> immutableArray, Func<T,bool> predicate);

Type Parameters

T

The type of element contained by the collection.

Parameters

immutableArray
ImmutableArray<T>

The array to check for elements.

predicate
Func<T,Boolean>

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

Returns

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

Applies to

.NET 10 и други версии
Продукт Версии
.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 Standard 2.0 (package-provided)
UWP 10.0