Class BoundsCheckableListT
BoundsCheckableList<T> 类
表示 BoundsCheckableList - System.Collections.Generic.List 的包装器。
public class BoundsCheckableList<T> : IList<T>
where T : IBoundsCheckableItem
构造函数
属性
名称 | 描述 |
---|
Count { get; } | 获取 System.Collections.Generic.List 中包含的元素数量。 |
IsReadOnly { get; } | 获取指示集合是否为只读的值。 |
Item { get; set; } | 获取或设置来自集合的段落。 |
方法
名称 | 描述 |
---|
Add(T) | 根据 “boundsCheckMode” 参数将对象添加到 System.Collections.Generic.List 的末尾。 |
Clear() | 从 System.Collections.Generic.List 中移除所有元素。 |
Contains(T) | 确定元素是否在 System.Collections.Generic.List 中。 |
CopyTo(T[], int) | |
GetEnumerator() | 返回一个枚举器,该枚举器遍历 System.Collections.Generic.List。 |
IndexOf(T) | 搜索指定对象并返回在整个 System.Collections.Generic.List 中第一次出现的零基索引。 |
Insert(int, T) | 在指定索引处将元素插入到 System.Collections.Generic.List 中。 |
Remove(T) | 从 System.Collections.Generic.List 中移除特定对象的第一次出现。 |
RemoveAt(int) | 移除 System.Collections.Generic.List 中指定索引处的元素。 |
UpdateBoundsCheckMode(BoundsCheckMode) | 更新已初始化集合的 boundsCheckMode 参数。 |
UpdateBoundsCheckMode(BoundsCheckMode, double, double) | 更新已初始化集合的 boundsCheckMode 参数。 |
另见