ArrayList Members
The following tables list the members exposed by the ArrayList type.
Public Constructors
Name | Description | |
---|---|---|
ArrayList | Initializes a new instance of the ArrayList class. |
Public Properties
Name | Description | |
---|---|---|
Capacity | Gets or sets the number of objects that the ArrayList collection can contain. | |
Count | Gets the number of objects that the ArrayList collection actually contains. | |
IsFixedSize | Gets a value indicating whether the ArrayList collection has a fixed size. | |
IsReadOnly | Gets a value indicating whether the ArrayList collection is read-only. | |
IsSynchronized | Gets a value indicating whether access to the ArrayList collection is synchronized. | |
Item | Gets or sets the object at the specified index number in the ArrayList collection. | |
SyncRoot | Gets an object that you can use to synchronize access to the ArrayList collection. |
Public Methods
Name | Description | |
---|---|---|
Add | Adds a specified object to the end of the ArrayList collection. | |
BinarySearch | Searches the entire sorted ArrayList collection for a specified object by using the specified comparer; returns the zero-based index number of the object. | |
Clear | Removes all objects from the ArrayList collection. | |
Clone | Creates a shallow copy of the ArrayList collection. | |
Contains | Determines whether a specified object is contained in the ArrayList collection. | |
CopyTo | Overloaded. Copies objects from the ArrayList collection to a specified one-dimensional array. | |
Equals | (Inherited from Object.) | |
GetEnumerator | Returns an enumerator for the entire ArrayList collection. | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
IndexOf | Overloaded. Returns the zero-based index number of the first occurrence of a specified object (if any) in either the entire ArrayList collection or a specified portion of it. | |
Insert | Inserts a specified object into the ArrayList collection at a specified index number. | |
ReferenceEquals | (Inherited from Object.) | |
Remove | Removes the first occurrence of a specified object from the ArrayList collection. | |
RemoveAt | Removes the object at the specified index number in the ArrayList collection. | |
ToArray | Overloaded. Copies objects from the ArrayList collection to a new array. | |
ToString | (Inherited from Object.) |
Protected Methods
Name | Description | |
---|---|---|
Finalize | (Inherited from Object.) | |
MemberwiseClone | (Inherited from Object.) |