ImmutableArrayExtensions::ElementAt<T> Method (ImmutableArray<T>, Int32)
Returns the element at a specified index in the array.
Assembly: System.Collections.Immutable (in System.Collections.Immutable.dll)
public: generic<typename T> [ExtensionAttribute] static T ElementAt( ImmutableArray<T> immutableArray, int index )
Parameters
- immutableArray
-
Type:
System.Collections.Immutable::ImmutableArray<T>
The array to find an element in.
- index
-
Type:
System::Int32
The index for the element to retrieve.
Return Value
Type: TThe item at the specified index.
Type Parameters
- T
The type of element contained by the collection.
Show: