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

 

Gets or sets the element at the specified index in the read-only list.

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 = IList<T>::default::get;
	virtual void set(int index, T value) sealed = IList<T>::default::set;
}

Parameters

index
Type: System::Int32

The zero-based index of the element to get.

Property Value

Type: T

The element at the specified index in the read-only list.

Exception Condition
NotSupportedException

Always thrown from the setter.

InvalidOperationException

Thrown if the IsDefault property returns true.

Return to top
Show: