ImmutableArrayExtensions.Last 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| Last<T>(ImmutableArray<T>.Builder) |
回傳集合中的最後一個元素。 |
| Last<T>(ImmutableArray<T>, Func<T,Boolean>) |
傳回符合指定條件之序列的最後一個專案。 |
| Last<T>(ImmutableArray<T>) |
回傳陣列的最後一個元素。 |
Last<T>(ImmutableArray<T>.Builder)
回傳集合中的最後一個元素。
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
類型參數
- T
建築工具裡的物品類型。
參數
- builder
- ImmutableArray<T>.Builder
建築師可以從那裡取回元素。
傳回
T
建築材料中的最後一個元素。
例外狀況
收藏是空的。
適用於
Last<T>(ImmutableArray<T>, Func<T,Boolean>)
傳回符合指定條件之序列的最後一個專案。
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
類型參數
- T
集合所包含的元素類型。
參數
- immutableArray
- ImmutableArray<T>
用來擷取元素的陣列。
傳回
T
陣列中最後一個符合條件 predicate 的元素。
例外狀況
收藏是空的。
適用於
Last<T>(ImmutableArray<T>)
回傳陣列的最後一個元素。
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
類型參數
- T
陣列所包含的元素類型。
參數
- immutableArray
- ImmutableArray<T>
用來取回物品的陣列。
傳回
T
陣列中的最後一個元素。
例外狀況
收藏是空的。