| Method | Description |
|---|
| Add(T) | Adds an object to the end of the List<T>. |
| AddRange(IEnumerable<T>) | Adds the elements of the specified collection to the end of the List<T>. |
| AsReadOnly() | Returns a read-only ReadOnlyCollection<T> wrapper for the current collection. |
| BinarySearch() | Uses a binary search algorithm to locate a specific element in the sorted List<T> or a portion of it. |
| Clear() | Removes all elements from the List<T>. |
| Contains(T) | Determines whether an element is in the List<T>. |
| ConvertAll(Converter) | Converts the elements in the current List<T> to another type, and returns a list containing the converted elements. |
| CopyTo() | Copies the List<T> or a portion of it to an array. |
| Equals(Object) | Determines whether the specified object is equal to the current object. |
| Exists(Predicate<T>) | Determines whether the List<T> contains elements that match the conditions defined by the specified predicate. |
| Find(Predicate<T>) | Searches for an element that matches the conditions defined by the specified predicate, and returns the first occurrence within the entire List<T>. |
| FindAll(Predicate<T>) | Retrieves all the elements that match the conditions defined by the specified predicate. |
| FindIndex() | Searches for an element that matches the conditions defined by a specified predicate, and returns the zero-based index of the first occurrence within the List<T> or a portion of it. This method returns -1 if an item that matches the conditions is not found. |
| FindLast(Predicate<T>) | Searches for an element that matches the conditions defined by the specified predicate, and returns the last occurrence within the entire List<T>. |
| FindLastIndex() | Searches for an element that matches the conditions defined by a specified predicate, and returns the zero-based index of the last occurrence within the List<T> or a portion of it. |
| ForEach(Action<T>) | Performs the specified action on each element of the List<T>. |
| GetEnumerator() | Returns an enumerator that iterates through the List<T>. |
| GetHashCode() | Serves as the default hash function. |
| GetRange(Int32, Int32) | Creates a shallow copy of a range of elements in the source List<T>. |
| GetType() | Gets the Type of the current instance. |
| IndexOf() | Returns the zero-based index of the first occurrence of a value in the List<T> or in a portion of it. |
| Insert(Int32, T) | Inserts an element into the List<T> at the specified index. |
| InsertRange(Int32, IEnumerable<T>) | Inserts the elements of a collection into the List<T> at the specified index. |
| LastIndexOf() | Returns the zero-based index of the last occurrence of a value in the List<T> or in a portion of it. |
| MemberwiseClone() | Creates a shallow copy of the current Object. |
| Remove(T) | Removes the first occurrence of a specific object from the List<T>. |
| RemoveAll(Predicate<T>) | Removes all the elements that match the conditions defined by the specified predicate. |
| RemoveAt(Int32) | Removes the element at the specified index of the List<T>. |
| RemoveRange(Int32, Int32) | Removes a range of elements from the List<T>. |
| Reverse() | Reverses the order of the elements in the List<T> or a portion of it. |
| Sort() | Sorts the elements or a portion of the elements in the List<T> using either the specified or default IComparer<T> implementation or a provided Comparison<T> delegate to compare list elements. |
| ToArray() | Copies the elements of the List<T> to a new array. |
| ToString() | Returns a string that represents the current object. |
| TrimExcess() | Sets the capacity to the actual number of elements in the List<T>, if that number is less than a threshold value. |
| TrueForAll(Predicate<T>) | Determines whether every element in the List<T> matches the conditions defined by the specified predicate. |