ImmutableArray<T>::IReadOnlyList<T>::Item Property (Int32)

 

Gets the element at the specified index.

Namespace:   System.Collections.Immutable
Assembly:  System.Collections.Immutable (in System.Collections.Immutable.dll)

private:
property T default[
	int index
] {
	virtual T get(int index) sealed = IReadOnlyList<T>::default::get;
}

Parameters

index
Type: System::Int32

The index.

Property Value

Type: T

The element.

Exception Condition
InvalidOperationException

Thrown if the IsDefault property returns true.

Return to top
Show: