This documentation is archived and is not being maintained.
ArrayList Methods
Visual Studio 2010
The ArrayList type exposes the following members.
| Name | Description | |
|---|---|---|
|
Adapter | Creates an ArrayList wrapper for a specific IList. |
|
Add | Adds an object to the end of the ArrayList. |
|
AddRange | Adds the elements of an ICollection to the end of the ArrayList. |
|
BinarySearch(Object) | Searches the entire sorted ArrayList for an element using the default comparer and returns the zero-based index of the element. |
|
BinarySearch(Object, IComparer) | Searches the entire sorted ArrayList for an element using the specified comparer and returns the zero-based index of the element. |
|
BinarySearch(Int32, Int32, Object, IComparer) | Searches a range of elements in the sorted ArrayList for an element using the specified comparer and returns the zero-based index of the element. |
|
Clear | Removes all elements from the ArrayList. |
|
Clone | Creates a shallow copy of the ArrayList. |
|
Contains | Determines whether an element is in the ArrayList. |
|
CopyTo(Array) | Copies the entire ArrayList to a compatible one-dimensional Array, starting at the beginning of the target array. |
|
CopyTo(Array, Int32) | Copies the entire ArrayList to a compatible one-dimensional Array, starting at the specified index of the target array. |
|
CopyTo(Int32, Array, Int32, Int32) | Copies a range of elements from the ArrayList to a compatible one-dimensional Array, starting at the specified index of the target array. |
|
Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
|
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
|
FixedSize(ArrayList) | Returns an ArrayList wrapper with a fixed size. |
|
FixedSize(IList) | Returns an IList wrapper with a fixed size. |
|
GetEnumerator() | Returns an enumerator for the entire ArrayList. |
|
GetEnumerator(Int32, Int32) | Returns an enumerator for a range of elements in the ArrayList. |
|
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
|
GetRange | Returns an ArrayList which represents a subset of the elements in the source ArrayList. |
|
GetType | Gets the Type of the current instance. (Inherited from Object.) |
|
IndexOf(Object) | Searches for the specified Object and returns the zero-based index of the first occurrence within the entire ArrayList. |
|
IndexOf(Object, Int32) | Searches for the specified Object and returns the zero-based index of the first occurrence within the range of elements in the ArrayList that extends from the specified index to the last element. |
|
IndexOf(Object, Int32, Int32) | Searches for the specified Object and returns the zero-based index of the first occurrence within the range of elements in the ArrayList that starts at the specified index and contains the specified number of elements. |
|
Insert | Inserts an element into the ArrayList at the specified index. |
|
InsertRange | Inserts the elements of a collection into the ArrayList at the specified index. |
|
LastIndexOf(Object) | Searches for the specified Object and returns the zero-based index of the last occurrence within the entire ArrayList. |
|
LastIndexOf(Object, Int32) | Searches for the specified Object and returns the zero-based index of the last occurrence within the range of elements in the ArrayList that extends from the first element to the specified index. |
|
LastIndexOf(Object, Int32, Int32) | Searches for the specified Object and returns the zero-based index of the last occurrence within the range of elements in the ArrayList that contains the specified number of elements and ends at the specified index. |
|
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
|
ReadOnly(ArrayList) | Returns a read-only ArrayList wrapper. |
|
ReadOnly(IList) | Returns a read-only IList wrapper. |
|
Remove | Removes the first occurrence of a specific object from the ArrayList. |
|
RemoveAt | Removes the element at the specified index of the ArrayList. |
|
RemoveRange | Removes a range of elements from the ArrayList. |
|
Repeat | Returns an ArrayList whose elements are copies of the specified value. |
|
Reverse() | Reverses the order of the elements in the entire ArrayList. |
|
Reverse(Int32, Int32) | Reverses the order of the elements in the specified range. |
|
SetRange | Copies the elements of a collection over a range of elements in the ArrayList. |
|
Sort() | Sorts the elements in the entire ArrayList. |
|
Sort(IComparer) | Sorts the elements in the entire ArrayList using the specified comparer. |
|
Sort(Int32, Int32, IComparer) | Sorts the elements in a range of elements in ArrayList using the specified comparer. |
|
Synchronized(ArrayList) | Returns an ArrayList wrapper that is synchronized (thread safe). |
|
Synchronized(IList) | Returns an IList wrapper that is synchronized (thread safe). |
|
ToArray() | Copies the elements of the ArrayList to a new Object array. |
|
ToArray(Type) | Copies the elements of the ArrayList to a new array of the specified element type. |
|
ToString | Returns a string that represents the current object. (Inherited from Object.) |
|
TrimToSize | Sets the capacity to the actual number of elements in the ArrayList. |
| Name | Description | |
|---|---|---|
|
AsParallel | Enables parallelization of a query. (Defined by ParallelEnumerable.) |
|
AsQueryable | Converts an IEnumerable to an IQueryable. (Defined by Queryable.) |
|
Cast<TResult> | Casts the elements of an IEnumerable to the specified type. (Defined by Enumerable.) |
|
OfType<TResult> | Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.) |
Show: