ImmutableArrayExtensions.Last Metodo
Definizione
Overload
Last<T>(ImmutableArray<T>.Builder) |
Restituisce l'ultimo elemento della raccolta.Returns the last element in the collection. |
Last<T>(ImmutableArray<T>, Func<T,Boolean>) |
Restituisce l'ultimo elemento di una sequenza che soddisfa una condizione specificata.Returns the last element of a sequence that satisfies a specified condition. |
Last<T>(ImmutableArray<T>) |
Restituisce l'ultimo elemento della matrice.Returns the last element of the array. |
Last<T>(ImmutableArray<T>.Builder)
Restituisce l'ultimo elemento della raccolta.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
<Extension()>
Public Function Last(Of T) (builder As ImmutableArray(Of T).Builder) As T
Parametri di tipo
- T
Tipo di elemento contenuto nel generatore.The type of item in the builder.
Parametri
- builder
- ImmutableArray<T>.Builder
Generatore da cui recuperare gli elementi.The builder to retrieve elements from.
Restituisce
- T
Ultimo elemento nel generatore.The last element in the builder.
Eccezioni
Viene generato se la raccolta è vuota.Thrown if the collection is empty.
Si applica a
Last<T>(ImmutableArray<T>, Func<T,Boolean>)
Restituisce l'ultimo elemento di una sequenza che soddisfa una condizione specificata.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);
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
Parametri di tipo
- T
Tipo di elemento contenuto dalla raccolta.The type of element contained by the collection.
Parametri
- immutableArray
- ImmutableArray<T>
Matrice da cui recuperare gli elementi.The array to retrieve elements from.
Delegato che definisce le condizioni dell'elemento da recuperare.The delegate that defines the conditions of the element to retrieve.
Restituisce
- T
Ultimo elemento della matrice che soddisfa la condizione predicate
.The last element of the array that satisfies the predicate
condition.
Eccezioni
Viene generato se la raccolta è vuota.Thrown if the collection is empty.
Si applica a
Last<T>(ImmutableArray<T>)
Restituisce l'ultimo elemento della matrice.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);
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
Parametri di tipo
- T
Tipo di elemento contenuto dalla matrice.The type of element contained by the array.
Parametri
- immutableArray
- ImmutableArray<T>
Matrice da cui recuperare gli elementi.The array to retrieve items from.
Restituisce
- T
Ultimo elemento nella matrice.The last element in the array.
Eccezioni
Viene generato se la raccolta è vuota.Thrown if the collection is empty.