ImmutableArrayExtensions.ElementAt<T> メソッド

定義

配列内の指定したインデックス位置にある要素を返します。

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

型パラメーター

T

コレクションに含まれる要素の型。

パラメーター

immutableArray
ImmutableArray<T>

要素を検索する配列。

index
Int32

取得する要素のインデックス。

返品

T

指定したインデックス位置にある項目。

適用対象