ImmutableArray<T>::IList<T>::Item Property (Int32)
Gets or sets the element at the specified index in the read-only list.
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.
Implements
IList<T>::Item[Int32]| Exception | Condition |
|---|---|
| NotSupportedException | Always thrown from the setter. |
| InvalidOperationException | Thrown if the IsDefault property returns true. |
Show: