CollectionBaseT
CollectionBase<T> class
为强类型集合提供抽象基类。
public abstract class CollectionBase<T> : ICollection, IList<T>
特性
| 姓名 | 描述 |
|---|
| Capacity { get; set; } | 获取或设置列表可以包含的元素个数。 |
| Count { get; } | 获取元素个数。 |
| Item { get; set; } | 获取或设置指定索引处的元素。 |
方法
| 姓名 | 描述 |
|---|
| BinarySearch(T) | |
| BinarySearch(T, IComparer<T>) | |
| BinarySearch(int, int, T, IComparer<T>) | |
| Clear() | 删除所有元素。 |
| Contains(T) | |
| CopyTo(T[]) | |
| CopyTo(T[], int) | |
| CopyTo(int, T[], int, int) | |
| Exists(Predicate<T>) | |
| Find(Predicate<T>) | |
| FindAll(Predicate<T>) | |
| FindIndex(Predicate<T>) | |
| FindIndex(int, Predicate<T>) | |
| FindIndex(int, int, Predicate<T>) | |
| FindLast(Predicate<T>) | |
| FindLastIndex(Predicate<T>) | |
| FindLastIndex(int, Predicate<T>) | |
| FindLastIndex(int, int, Predicate<T>) | |
| GetEnumerator() | |
| IndexOf(T) | |
| IndexOf(T, int) | |
| IndexOf(T, int, int) | |
| LastIndexOf(T) | |
| LastIndexOf(T, int) | |
| LastIndexOf(T, int, int) | |
| RemoveAt(int) | 删除指定索引处的元素。 |
也可以看看