P_Cyjb_Collections_ObjectModel_ListBase_1_Item - CYJB/Cyjb GitHub Wiki
获取或设置指定索引处的元素。
Namespace: Cyjb.Collections.ObjectModel
Assembly: Cyjb (in Cyjb.dll) Version: 1.0.23+7750dd8e971297c5fa962a3bee37fb78f72793f6
C#
public T this[
int index
] { get; set; }
- index
- Type: System.Int32
要获取或设置的元素从零开始的索引。
Type: T
指定索引处的元素。
IList(T).Item(Int32)
IReadOnlyList(T).Item(Int32)
异常 | 条件 |
---|---|
ArgumentOutOfRangeException | index 不是当前列表的有效索引。 |