Tab

Collection<T> Methods

Represents the universal collection, which may be used as a base class for other collection classes.
Name Description
Add(T) Adds the specified element to the end of the collection.
Add(T[]) Adds the specified elements to the end of the collection.
AddRange(IEnumerable<T>) Adds a collection of items to the end of the collection.
Assign(IAssignableCollection) Copies the items from the specified IAssignableCollection-supported object to the current object. Inherited from Collection.
Clear() Clears the collection by removing all its items. Inherited from StateManagedCollectionBase.
Contains(T) Determines whether the collection contains the specified item.
ConvertAll<TOutput>(Converter<T, TOutput>) For internal use only.
CopyTo(T[], Int32) Copies the items from the collection to the specified array, starting at the specified index in the array object.
CopyTo(Array, Int32) Copies the items from the collection to the specified array, starting at the specified index in the array object. Inherited from StateManagedCollectionBase.
Equals(Object) Determines whether the specified object is equal to the current object. Inherited from Object.
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
Find(Predicate<T>) Returns the first element that matches the conditions defined by the specified predicate.
FindAll(Predicate<T>) Returns all elements that match the conditions defined by the specified predicate.
ForEach(Action<T>) Performs the specified action on each element of the current collection.
GetEnumerator() Returns a reference to an enumerator object, which is used to iterate through the collection. Inherited from StateManagedCollectionBase.
GetHashCode() Serves as the default hash function. Inherited from Object.
GetType() Gets the Type of the current instance. Inherited from Object.
GetVisibleItem(Int32) Gets an item by its visible index.
GetVisibleItemCount() Returns the number of visible items in an item collection.
GetVisibleItems() Obtains collection items whose visibility is enabled.
IndexOf(T) Searches for the specified item and returns the zero-based index of its first occurrence within the collection.
IndexOf(Predicate<T>) Returns the zero-based index of the first element that matches the conditions defined by the specified predicate.
Insert(Int32, T) Inserts the specified element into the collection at the specified position.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
Move(Int32, Int32) Moves a specific collection item to another position within the list. Inherited from Collection.
ReferenceEquals(Object, Object)