Class CollectionBaseT

CollectionBase<T> class

Provides the abstract base class for a strongly typed collection.

public abstract class CollectionBase<T> : ICollection, IList<T>

Properties

NameDescription
Capacity { get; set; }Gets or sets the number of elements that the list can contain.
Count { get; }Gets the number of elements.
Item { get; set; }Gets or sets the element at the specified index.

Methods

NameDescription
BinarySearch(T)
BinarySearch(T, IComparer<T>)
BinarySearch(int, int, T, IComparer<T>)
Clear()Remove all elements.
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)Removes the element at the specified index.

See Also