Mono Class Library: Overview

System.Collections.ArrayList: Members

The members of System.Collections.ArrayList are listed below.

See Also: Inherited members from System.Object

Public Constructors

Constructs and initializes a new instance of the ArrayList class that is empty and has the default initial ArrayList.Capacity .
Constructs and initializes a new instance of the ArrayList class with the elements from the specified ICollection. The initial ArrayList.Count and ArrayList.Capacity of the new list are both equal to the number of elements in the specified collection.
Constructs and initializes a new instance of the ArrayList class that is empty and has the specified initial ArrayList.Capacity .

Public Properties

Capacityint. Gets or sets the number of elements that the current instance is capable of storing.
[read-only]
Countint. Implemented to support the ICollection interface. [Note: For more information, see ICollection.Count.]
[read-only]
IsFixedSizebool. Gets a bool indicating whether the ArrayList.Capacity of the current instance cannot be changed.
[read-only]
IsReadOnlybool. Gets a value indicating whether the current instance is read-only.
[read-only]
IsSynchronizedbool. Gets a value indicating whether access to the current instance is synchronized (thread-safe).
default property
Item(int)object. Gets or sets the element at the specified index of the current instance.
[read-only]
SyncRootobject. Gets an object that can be used to synchronize access to the current instance.

Public Methods

static
Adapter(IList) : ArrayList
Creates a ArrayList that is a wrapper for the specified IList.
Add(object) : int
Adds the specified object to the end of the current instance.
AddRange(ICollection)
Adds the elements of the specified ICollection to the end of the current instance.
BinarySearch(object) : int
Searches the current instance for the specified object.
BinarySearch(object, IComparer) : int
Searches the current instance for the specified object using the specified IComparer implementation.
BinarySearch(int, int, object, IComparer) : int
Searches the specified range in the current instance for the specified object using the specified IComparer implementation.
Clear()
Sets the elements in the current instance to zero, false, or null, depending upon the element type.
Clone() : object
Returns a object that is a copy of the current instance.
Contains(object) : bool
Determines whether the specified object is contained in the current instance.
CopyTo(Array)
Copies the elements from the current instance to the specified Array.
CopyTo(Array, int)
Copies the elements from the current instance to the specified Array , starting at the specified index of the array.
CopyTo(int, Array, int, int)
Copies the specified range of elements from the current instance to the specified Array, starting at the specified index of the array.
static
FixedSize(ArrayList) : ArrayList
Returns a ArrayList wrapper with a fixed size.
static
FixedSize(IList) : IList
Documentation for this section has not yet been entered.
GetEnumerator() : IEnumerator
Returns a IEnumerator for the current instance.
GetEnumerator(int, int) : IEnumerator
Returns a IEnumerator for the specified section of the current instance.
GetRange(int, int) : ArrayList
Returns a ArrayList that represents the specified range of the current instance.
IndexOf(object) : int
Searches the current instance, returning the index of the first occurrence of the specified object.
IndexOf(object, int) : int
Searches the current instance, returning the index of the first occurrence of the specified object in the specified range.
IndexOf(object, int, int) : int
Searches the current instance, returning the index of the first occurrence of the specified object in the specified range.
Insert(int, object)
Inserts the specified object into the current instance at the specified index.
InsertRange(int, ICollection)
Inserts the elements of the specified ICollection at the specified index of the current instance.
LastIndexOf(object) : int
Searches the current instance, returning the index of the last occurrence of the specified object.
LastIndexOf(object, int) : int
Searches the current instance, returning the index of the last occurrence of the specified object in the specified range of the current instance.
LastIndexOf(object, int, int) : int
Searches the current instance, returning the index of the last occurrence of the specified object in the specified range.
static
ReadOnly(ArrayList) : ArrayList
Returns a read-only ArrayList wrapper.
static
ReadOnly(IList) : IList
Documentation for this section has not yet been entered.
Remove(object)
Removes the first occurrence of the specified object from the current instance.
RemoveAt(int)
Removes the element at the specified index from the current instance.
RemoveRange(int, int)
Removes the specified range of elements from the current instance.
static
Repeat(object, int) : ArrayList
Returns a new ArrayList whose elements are copies of the specified object.
Reverse()
Reverses the sequence of the elements in the current instance.
Reverse(int, int)
Reverses the sequence of the elements in the specified range of the current instance.
SetRange(int, ICollection)
Copies the elements of the specified ICollection to a range in the current instance.
Sort()
Sorts the elements of the current instance.
Sort(IComparer)
Sorts the elements of current instance using the specified IComparer.
Sort(int, int, IComparer)
Sorts the elements in the specified range of the current instance using the specified IComparer implementation.
static
Synchronized(ArrayList) : ArrayList
Returns a ArrayList wrapper around the specified ArrayList that is synchronized (thread-safe).
static
Synchronized(IList) : IList
Documentation for this section has not yet been entered.
ToArray() : object[]
Copies the elements of the current instance to a new object array.
ToArray(Type) : Array
Copies the elements of the current instance to a new array of the specified Type.
TrimToSize()
Sets the ArrayList.Capacity of the current instance to the ArrayList.Count of the current instance.

Extension Methods

static
AsQueryable(this IEnumerable) : System.Linq.IQueryable
Documentation for this section has not yet been entered.
static
Cast<TResult>(this IEnumerable) : IEnumerable<TResult>
Documentation for this section has not yet been entered.
static
OfType<TResult>(this IEnumerable) : IEnumerable<TResult>
Documentation for this section has not yet been entered.