ArrayList
Implements the IList interface using an array whose size is dynamically increased as required.To browse the .NET Framework source code for this type, see the Reference Source.
Gets or sets the number of elements that the ArrayList can contain.
Gets the number of elements actually contained in the ArrayList.
Gets a value indicating whether the ArrayList has a fixed size.
Gets a value indicating whether the ArrayList is read-only.
Gets a value indicating whether access to the ArrayList is synchronized (thread safe).
Gets or sets the element at the specified index.
Gets an object that can be used to synchronize access to the ArrayList.
public ArrayList()
Initializes a new instance of the ArrayList class that is empty and has the default initial capacity.
Initializes a new instance of the ArrayList class that is empty and has the specified initial capacity.
Initializes a new instance of the ArrayList class that contains elements copied from the specified collection and that has the same initial capacity as the number of elements copied.
Returns an IList wrapper with a fixed size.
Returns an ArrayList wrapper with a fixed size.
Returns a read-only IList wrapper.
Returns a read-only ArrayList wrapper.
Returns an ArrayList whose elements are copies of the specified value.
Returns an IList wrapper that is synchronized (thread safe).
Returns an ArrayList wrapper that is synchronized (thread safe).
Adds an object to the end of the ArrayList.
Adds the elements of an ICollection to the end of the ArrayList.
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.
Searches the entire sorted ArrayList for an element using the default comparer and returns the zero-based index of the element.
Searches the entire sorted ArrayList for an element using the specified comparer and returns the zero-based index of the element.
Removes all elements from the ArrayList.
Creates a shallow copy of the ArrayList.
Determines whether an element is in the ArrayList.
Copies the entire ArrayList to a compatible one-dimensional Array, starting at the beginning of the target array.
Copies the entire ArrayList to a compatible one-dimensional Array, starting at the specified index of the target array.
Copies a range of elements from the ArrayList to a compatible one-dimensional Array, starting at the specified index of the target array.
Returns an enumerator for the entire ArrayList.
Returns an enumerator for a range of elements in the ArrayList.
Searches for the specified Object and returns the zero-based index of the first occurrence within the entire ArrayList.
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.
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.
Inserts an element into the ArrayList at the specified index.
Inserts the elements of a collection into the ArrayList at the specified index.
Searches for the specified Object and returns the zero-based index of the last occurrence within the entire ArrayList.
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.
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.
Removes the first occurrence of a specific object from the ArrayList.
Removes the element at the specified index of the ArrayList.
Removes a range of elements from the ArrayList.
Reverses the order of the elements in the entire ArrayList.
Reverses the order of the elements in the specified range.
Copies the elements of a collection over a range of elements in the ArrayList.
Sorts the elements in the entire ArrayList.
Sorts the elements in the entire ArrayList using the specified comparer.
Sorts the elements in a range of elements in ArrayList using the specified comparer.
Copies the elements of the ArrayList to a new array of the specified element type.
Sets the capacity to the actual number of elements in the ArrayList.