This documentation is archived and is not being maintained.
ArrayList Methods
Visual Studio 2008
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 | Overloaded. Uses a binary search algorithm to locate a specific element in the sorted ArrayList or a portion of it. |
|
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 | Overloaded. Copies the ArrayList or a portion of it to a one-dimensional array. |
|
Equals | 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 | Overloaded. Returns a list wrapper with a fixed size, where elements are allowed to be modified, but not added or removed. |
|
GetEnumerator | Overloaded. Returns an enumerator that iterates through 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 | Overloaded. Returns the zero-based index of the first occurrence of a value in the ArrayList or in a portion of it. |
|
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 | Overloaded. Returns the zero-based index of the last occurrence of a value in the ArrayList or in a portion of it. |
|
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
|
ReadOnly | Overloaded. Returns a list wrapper that is read-only. |
|
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 | Overloaded. Reverses the order of the elements in the ArrayList or a portion of it. |
|
SetRange | Copies the elements of a collection over a range of elements in the ArrayList. |
|
Sort | Overloaded. Sorts the elements in the ArrayList or a portion of it. |
|
Synchronized | Overloaded. Returns a list wrapper that is synchronized (thread safe). |
|
ToArray | Overloaded. Copies the elements of the ArrayList to a new array. |
|
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 | |
|---|---|---|
|
AsQueryable | Converts an IEnumerable to an IQueryable. (Defined by Queryable.) |
|
Cast | Converts the elements of an IEnumerable to the specified type. (Defined by Enumerable.) |
|
OfType | Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.) |
Show: