Property this
this[int]
Gets or sets the element at the specified index.
선언
public T this[int index] { get; set; }
파라미터
타입 | 이름 | 설명 |
---|---|---|
int | index | The zero-based index of the element to get or set. |
프로퍼티 값
타입 | 설명 |
---|---|
T | The element at the specified index. |
구현
예외
타입 | 조건 |
---|---|
ArgumentOutOfRangeException |
|
NotSupportedException | The property is set and the IList<T> is read-only. |