ImmutableArrayExtensions.First メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
| 名前 | 説明 |
|---|---|
| First<T>(ImmutableArray<T>) |
配列内の最初の要素を返します。 |
| First<T>(ImmutableArray<T>.Builder) |
コレクション内の最初の要素を返します。 |
| First<T>(ImmutableArray<T>, Func<T,Boolean>) |
指定した条件を満たすシーケンス内の最初の要素を返します。 |
First<T>(ImmutableArray<T>)
配列内の最初の要素を返します。
public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
static T First(System::Collections::Immutable::ImmutableArray<T> immutableArray);
public static T First<T>(this System.Collections.Immutable.ImmutableArray<T> immutableArray);
static member First : System.Collections.Immutable.ImmutableArray<'T> -> 'T
<Extension()>
Public Function First(Of T) (immutableArray As ImmutableArray(Of T)) As T
型パラメーター
- T
コレクションに含まれる要素の型。
パラメーター
- immutableArray
- ImmutableArray<T>
項目を取得する配列。
返品
配列内の最初の項目。
例外
配列が空の場合。
適用対象
First<T>(ImmutableArray<T>.Builder)
コレクション内の最初の要素を返します。
public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
static T First(System::Collections::Immutable::ImmutableArray<T>::Builder ^ builder);
public static T First<T>(this System.Collections.Immutable.ImmutableArray<T>.Builder builder);
static member First : System.Collections.Immutable.ImmutableArray<'T>.Builder -> 'T
<Extension()>
Public Function First(Of T) (builder As ImmutableArray(Of T).Builder) As T
型パラメーター
- T
配列内の項目の型。
パラメーター
- builder
- ImmutableArray<T>.Builder
アイテムを取得するビルダー。
返品
リスト内の最初の項目。
例外
配列が空の場合。
適用対象
First<T>(ImmutableArray<T>, Func<T,Boolean>)
指定した条件を満たすシーケンス内の最初の要素を返します。
public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
static T First(System::Collections::Immutable::ImmutableArray<T> immutableArray, Func<T, bool> ^ predicate);
public static T First<T>(this System.Collections.Immutable.ImmutableArray<T> immutableArray, Func<T,bool> predicate);
static member First : System.Collections.Immutable.ImmutableArray<'T> * Func<'T, bool> -> 'T
<Extension()>
Public Function First(Of T) (immutableArray As ImmutableArray(Of T), predicate As Func(Of T, Boolean)) As T
型パラメーター
- T
コレクションに含まれる要素の型。
パラメーター
- immutableArray
- ImmutableArray<T>
項目を取得する配列。
返品
リスト内の最初の項目が、 predicateで指定された条件を満たしている場合。
例外
配列が空の場合。