Constructors
-
Array
List() Initializes a new instance of the ArrayList class that is empty and has the default initial capacity. -
Array
List(ICollection) 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. -
Array
List(Int32) Initializes a new instance of the ArrayList class that is empty and has the specified initial capacity.
Methods
- Adapter(IList) static Creates an ArrayList wrapper for a specific IList.
- Add(Object) virtual Adds an object to the end of the ArrayList.
-
Add
Range(ICollection) virtual Adds the elements of an ICollection to the end of the ArrayList. -
Binary
Search(Int32, virtual 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.Int32, Object, IComparer) -
Binary
Search(Object) virtual Searches the entire sorted ArrayList for an element using the default comparer and returns the zero-based index of the element. -
Binary
Search(Object, virtual Searches the entire sorted ArrayList for an element using the specified comparer and returns the zero-based index of the element.IComparer) - Clear() virtual Removes all elements from the ArrayList.
- Clone() virtual Creates a shallow copy of the ArrayList.
- Contains(Object) virtual Determines whether an element is in the ArrayList.
-
Copy
To(Array) virtual Copies the entire ArrayList to a compatible one-dimensional Array, starting at the beginning of the target array. -
Copy
To(Array, virtual Copies the entire ArrayList to a compatible one-dimensional Array, starting at the specified index of the target array.Int32) -
Copy
To(Int32, virtual Copies a range of elements from the ArrayList to a compatible one-dimensional Array, starting at the specified index of the target array.Array, Int32, Int32) -
Fixed
Size(Array static Returns an ArrayList wrapper with a fixed size.List) -
Fixed
Size(IList) static Returns an IList wrapper with a fixed size. -
Get
Enumerator() virtual Returns an enumerator for the entire ArrayList. -
Get
Enumerator(Int32, virtual Returns an enumerator for a range of elements in the ArrayList.Int32) -
Get
Range(Int32, virtual Returns an ArrayList which represents a subset of the elements in the source ArrayList.Int32) -
Index
Of(Object) virtual Searches for the specified Object and returns the zero-based index of the first occurrence within the entire ArrayList. -
Index
Of(Object, virtual 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.Int32) -
Index
Of(Object, virtual 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.Int32, Int32) -
Insert(Int32,
Object) virtual Inserts an element into the ArrayList at the specified index. -
Insert
Range(Int32, virtual Inserts the elements of a collection into the ArrayList at the specified index.ICollection) -
Last
Index virtual Searches for the specified Object and returns the zero-based index of the last occurrence within the entire ArrayList.Of(Object) -
Last
Index virtual 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.Of(Object, Int32) -
Last
Index virtual 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.Of(Object, Int32, Int32) -
Read
Only(Array static Returns a read-only ArrayList wrapper.List) -
Read
Only(IList) static Returns a read-only IList wrapper. - Remove(Object) virtual Removes the first occurrence of a specific object from the ArrayList.
-
Remove
At(Int32) virtual Removes the element at the specified index of the ArrayList. -
Remove
Range(Int32, virtual Removes a range of elements from the ArrayList.Int32) -
Repeat(Object,
Int32) static Returns an ArrayList whose elements are copies of the specified value. - Reverse() virtual Reverses the order of the elements in the entire ArrayList.
-
Reverse(Int32,
Int32) virtual Reverses the order of the elements in the specified range. -
Set
Range(Int32, virtual Copies the elements of a collection over a range of elements in the ArrayList.ICollection) - Sort() virtual Sorts the elements in the entire ArrayList.
- Sort(IComparer) virtual Sorts the elements in the entire ArrayList using the specified comparer.
-
Sort(Int32,
Int32, virtual Sorts the elements in a range of elements in ArrayList using the specified comparer.IComparer) -
Synchronized(Array
List) static Returns an ArrayList wrapper that is synchronized (thread safe). - Synchronized(IList) static Returns an IList wrapper that is synchronized (thread safe).
-
To
Array() virtual Copies the elements of the ArrayList to a new Object array. -
To
Array(Type) virtual Copies the elements of the ArrayList to a new array of the specified element type. -
Trim
To virtual Sets the capacity to the actual number of elements in the ArrayList.Size()
Properties
- Capacity virtual Gets or sets the number of elements that the ArrayList can contain.
- Count virtual Gets the number of elements actually contained in the ArrayList.
-
Is
Fixed virtual Gets a value indicating whether the ArrayList has a fixed size.Size -
Is
Read virtual Gets a value indicating whether the ArrayList is read-only.Only -
Is
Synchronized virtual Gets a value indicating whether access to the ArrayList is synchronized (thread safe). - Item virtual
-
Sync
Root virtual Gets an object that can be used to synchronize access to the ArrayList.