List Members
.NET Framework 2.0
Represents a strongly typed list of objects that can be accessed by index. Provides methods to search, sort, and manipulate lists.
The following tables list the members exposed by the List generic type.
(see also
Protected Methods
)
Top
| Name | Description | |
|---|---|---|
| Add | Adds an object to the end of the List. |
| AddRange | Adds the elements of the specified collection to the end of the List. |
| AsReadOnly | Returns a read-only IList wrapper for the current collection. |
| BinarySearch | Overloaded. Uses a binary search algorithm to locate a specific element in the sorted List or a portion of it. |
| Clear | Removes all elements from the List. |
| Contains | Determines whether an element is in the List. |
| ConvertAll | Converts the elements in the current List to another type, and returns a list containing the converted elements. |
| CopyTo | Overloaded. Copies the List or a portion of it to an array. |
| Equals | Overloaded. Determines whether two Object instances are equal. (inherited from Object) |
| Exists | Determines whether the List contains elements that match the conditions defined by the specified predicate. |
| Find | Searches for an element that matches the conditions defined by the specified predicate, and returns the first occurrence within the entire List. |
| FindAll | Retrieves all the elements that match the conditions defined by the specified predicate. |
| FindIndex | Overloaded. 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 or a portion of it. |
| FindLast | Searches for an element that matches the conditions defined by the specified predicate, and returns the last occurrence within the entire List. |
| FindLastIndex | Overloaded. 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 or a portion of it. |
| ForEach | Performs the specified action on each element of the List. |
| GetEnumerator | Returns an enumerator that iterates through the List. |
| GetHashCode | Serves as a hash function for a particular type. (inherited from Object) |
| GetRange | Creates a shallow copy of a range of elements in the source List. |
| GetType | Gets the Type of the current instance. (inherited from Object) |
| IndexOf | Overloaded. Returns the zero-based index of the first occurrence of a value in the List or in a portion of it. |
| Insert | Inserts an element into the List at the specified index. |
| InsertRange | Inserts the elements of a collection into the List at the specified index. |
| LastIndexOf | Overloaded. Returns the zero-based index of the last occurrence of a value in the List or in a portion of it. |
| ReferenceEquals | Determines whether the specified Object instances are the same instance. (inherited from Object) |
| Remove | Removes the first occurrence of a specific object from the List. |
| RemoveAll | Removes the all the elements that match the conditions defined by the specified predicate. |
| RemoveAt | Removes the element at the specified index of the List. |
| RemoveRange | Removes a range of elements from the List. |
| Reverse | Overloaded. Reverses the order of the elements in the List or a portion of it. |
| Sort | Overloaded. Sorts the elements in the List or a portion of it. |
| ToArray | Copies the elements of the List to a new array. |
| ToString | Returns a String that represents the current Object. (inherited from Object) |
| TrimExcess | Sets the capacity to the actual number of elements in the List, if that number is less than a threshold value. |
| TrueForAll | Determines whether every element in the List matches the conditions defined by the specified predicate. |
| Name | Description | |
|---|---|---|
| Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (inherited from Object) |
| MemberwiseClone | Creates a shallow copy of the current Object. (inherited from Object) |
| Name | Description | |
|---|---|---|
| System.Collections.Generic.IEnumerable<T>.GetEnumerator | Returns an enumerator that iterates through a collection. |
| System.Collections.ICollection.CopyTo | Copies the elements of the ICollection to an Array, starting at a particular Array index. |
| System.Collections.IEnumerable.GetEnumerator | Returns an enumerator that iterates through a collection. |
| System.Collections.IList.Add | Adds an item to the IList. |
| System.Collections.IList.Contains | Determines whether the IList contains a specific value. |
| System.Collections.IList.IndexOf | Determines the index of a specific item in the IList. |
| System.Collections.IList.Insert | Inserts an item to the IList at the specified index. |
| System.Collections.IList.Remove | Removes the first occurrence of a specific object from the IList. |
| System.Collections.Generic.ICollection<T>.IsReadOnly | Gets a value indicating whether the ICollection is read-only. |
| System.Collections.ICollection.IsSynchronized | Gets a value indicating whether access to the ICollection is synchronized (thread safe). |
| System.Collections.ICollection.SyncRoot | Gets an object that can be used to synchronize access to the ICollection. |
| System.Collections.IList.IsFixedSize | Gets a value indicating whether the IList has a fixed size. |
| System.Collections.IList.IsReadOnly | Gets a value indicating whether the IList is read-only. |
| System.Collections.IList.Item | Gets or sets the element at the specified index. |