ImmutableArrayExtensions::ElementAt<T> Method (ImmutableArray<T>, Int32)

 

Returns the element at a specified index in the array.

Namespace:   System.Linq
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: T

The item at the specified index.

Type Parameters

T

The type of element contained by the collection.

Return to top
Show: