ImmutableArrayExtensions.Last Metoda

Definicja

Przeciążenia

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

Zwraca ostatni element w kolekcji.

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

Zwraca ostatni element sekwencji, który spełnia określony warunek.

Last<T>(ImmutableArray<T>)

Zwraca ostatni element tablicy.

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

Zwraca ostatni element w kolekcji.

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
<Extension()>
Public Function Last(Of T) (builder As ImmutableArray(Of T).Builder) As T

Parametry typu

T

Typ elementu w konstruktorze.

Parametry

builder
ImmutableArray<T>.Builder

Konstruktor do pobierania elementów z.

Zwraca

T

Ostatni element w konstruktorze.

Wyjątki

Kolekcja jest pusta.

Dotyczy

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

Zwraca ostatni element sekwencji, który spełnia określony warunek.

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

Parametry typu

T

Typ elementu zawartego w kolekcji.

Parametry

immutableArray
ImmutableArray<T>

Tablica do pobierania elementów z.

predicate
Func<T,Boolean>

Delegat, który definiuje warunki elementu do pobrania.

Zwraca

T

Ostatni element tablicy, który spełnia predicate warunek.

Wyjątki

Kolekcja jest pusta.

Dotyczy

Last<T>(ImmutableArray<T>)

Zwraca ostatni element tablicy.

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

Parametry typu

T

Typ elementu zawartego w tablicy.

Parametry

immutableArray
ImmutableArray<T>

Tablica do pobierania elementów z.

Zwraca

T

Ostatni element w tablicy.

Wyjątki

Kolekcja jest pusta.

Dotyczy