ImmutableArrayExtensions.Last ImmutableArrayExtensions.Last ImmutableArrayExtensions.Last ImmutableArrayExtensions.Last Method

Definition

Overloads

Last<T>(ImmutableArray<T>) Last<T>(ImmutableArray<T>) Last<T>(ImmutableArray<T>)

Returns the last element in the collection.

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

Returns the last element of a sequence that satisfies a specified condition.

Last<T>(ImmutableArray<T>) Last<T>(ImmutableArray<T>) Last<T>(ImmutableArray<T>) Last<T>(ImmutableArray<T>)

Returns the last element of the array.

Last<T>(ImmutableArray<T>) Last<T>(ImmutableArray<T>) Last<T>(ImmutableArray<T>)

Returns the last element in the collection.

public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static T Last(System::Collections::Immutable::ImmutableArray<T>::Builder ^ builder);
public static T Last<T> (this System.Collections.Immutable.ImmutableArray<T>.Builder builder);
static member Last : System.Collections.Immutable.ImmutableArray<'T>.Builder -> 'T

Type Parameters

T

The type of item in the builder.

Parameters

builder
ImmutableArray<T>.Builder

The builder to retrieve elements from.

Returns

T T T T

The last element in the builder.

Exceptions

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

Returns the last element of a sequence that satisfies a specified condition.

public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static T Last(System::Collections::Immutable::ImmutableArray<T> immutableArray, Func<T, bool> ^ predicate);
public static T Last<T> (this System.Collections.Immutable.ImmutableArray<T> immutableArray, Func<T,bool> predicate);
static member Last : System.Collections.Immutable.ImmutableArray<'T> * Func<'T, bool> -> 'T
<Extension()>
Public Function Last(Of T) (immutableArray As ImmutableArray(Of T), predicate As Func(Of T, Boolean)) As T

Type Parameters

T

The type of element contained by the collection.

Parameters

immutableArray
ImmutableArray<T> ImmutableArray<T> ImmutableArray<T> ImmutableArray<T>

The array to retrieve elements from.

predicate
Func<T,Boolean>

The delegate that defines the conditions of the element to retrieve.

Returns

T T T T

The last element of the array that satisfies the predicate condition.

Exceptions

Last<T>(ImmutableArray<T>) Last<T>(ImmutableArray<T>) Last<T>(ImmutableArray<T>) Last<T>(ImmutableArray<T>)

Returns the last element of the array.

public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static T Last(System::Collections::Immutable::ImmutableArray<T> immutableArray);
public static T Last<T> (this System.Collections.Immutable.ImmutableArray<T> immutableArray);
static member Last : System.Collections.Immutable.ImmutableArray<'T> -> 'T
<Extension()>
Public Function Last(Of T) (immutableArray As ImmutableArray(Of T)) As T

Type Parameters

T

The type of element contained by the array.

Parameters

immutableArray
ImmutableArray<T> ImmutableArray<T> ImmutableArray<T> ImmutableArray<T>

The array to retrieve items from.

Returns

T T T T

The last element in the array.

Exceptions

Applies to