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

 

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

Parameters

index
Type: System::Int32

Property Value

Type: T

Exception Condition
IndexOutOfRangeException

Thrown from getter when index is negative or not less than Count.

NotSupportedException

Always thrown from the setter.

Return to top
Show: