ArrayList Members 

Implements the IList interface using an array whose size is dynamically increased as required.

The following tables list the members exposed by the ArrayList type.

Public ConstructorsPublic Constructors

 

Name

Description

Public methodSupported by the .NET Compact FrameworkSupported by the XNA Framework

ArrayList

Overloaded. Initializes a new instance of the ArrayList class.

Top

Public PropertiesPublic Properties

 

Name

Description

Public propertySupported by the .NET Compact FrameworkSupported by the XNA Framework

Capacity

Gets or sets the number of elements that the ArrayList can contain.

Public propertySupported by the .NET Compact FrameworkSupported by the XNA Framework

Count

Gets the number of elements actually contained in the ArrayList.

Public propertySupported by the .NET Compact FrameworkSupported by the XNA Framework

IsFixedSize

Gets a value indicating whether the ArrayList has a fixed size.

Public propertySupported by the .NET Compact FrameworkSupported by the XNA Framework

IsReadOnly

Gets a value indicating whether the ArrayList is read-only.

Public propertySupported by the .NET Compact FrameworkSupported by the XNA Framework

IsSynchronized

Gets a value indicating whether access to the ArrayList is synchronized (thread safe).

Public propertySupported by the .NET Compact FrameworkSupported by the XNA Framework

Item

Gets or sets the element at the specified index.

Public propertySupported by the .NET Compact FrameworkSupported by the XNA Framework

SyncRoot

Gets an object that can be used to synchronize access to the ArrayList.

Top

Public MethodsPublic Methods

(see also Protected Methods )

 

Name

Description

Public methodStatic

Adapter

Creates an ArrayList wrapper for a specific IList.

Public methodSupported by the .NET Compact FrameworkSupported by the XNA Framework

Add

Adds an object to the end of the ArrayList.

Public methodSupported by the .NET Compact FrameworkSupported by the XNA Framework

AddRange

Adds the elements of an ICollection to the end of the ArrayList.

Public methodSupported by the .NET Compact FrameworkSupported by the XNA Framework

BinarySearch

Overloaded. Uses a binary search algorithm to locate a specific element in the sorted ArrayList or a portion of it.

Public methodSupported by the .NET Compact FrameworkSupported by the XNA Framework

Clear

Removes all elements from the ArrayList.

Public methodSupported by the .NET Compact FrameworkSupported by the XNA Framework

Clone

Creates a shallow copy of the ArrayList.

Public methodSupported by the .NET Compact FrameworkSupported by the XNA Framework

Contains

Determines whether an element is in the ArrayList.

Public methodSupported by the .NET Compact FrameworkSupported by the XNA Framework

CopyTo

Overloaded. Copies the ArrayList or a portion of it to a one-dimensional array.

Public methodSupported by the .NET Compact FrameworkSupported by the XNA Framework

Equals 

Overloaded. Determines whether two Object instances are equal. (inherited from Object)

Public methodStatic

FixedSize

Overloaded. Returns a list wrapper with a fixed size, where elements are allowed to be modified, but not added or removed.

Public methodSupported by the .NET Compact FrameworkSupported by the XNA Framework

GetEnumerator

Overloaded. Returns an enumerator that iterates through the ArrayList.

Public methodSupported by the .NET Compact FrameworkSupported by the XNA Framework

GetHashCode 

Serves as a hash function for a particular type. (inherited from Object)

Public method

GetRange

Returns an ArrayList which represents a subset of the elements in the source ArrayList.

Public methodSupported by the .NET Compact FrameworkSupported by the XNA Framework

GetType 

Gets the Type of the current instance. (inherited from Object)

Public methodSupported by the .NET Compact FrameworkSupported by the XNA Framework

IndexOf

Overloaded. Returns the zero-based index of the first occurrence of a value in the ArrayList or in a portion of it.

Public methodSupported by the .NET Compact FrameworkSupported by the XNA Framework

Insert

Inserts an element into the ArrayList at the specified index.

Public methodSupported by the .NET Compact FrameworkSupported by the XNA Framework

InsertRange

Inserts the elements of a collection into the ArrayList at the specified index.

Public method

LastIndexOf

Overloaded. Returns the zero-based index of the last occurrence of a value in the ArrayList or in a portion of it.

Public methodStatic

ReadOnly

Overloaded. Returns a list wrapper that is read-only.

Public methodStaticSupported by the .NET Compact Framework

ReferenceEquals 

Determines whether the specified Object instances are the same instance. (inherited from Object)

Public methodSupported by the .NET Compact FrameworkSupported by the XNA Framework

Remove

Removes the first occurrence of a specific object from the ArrayList.

Public methodSupported by the .NET Compact FrameworkSupported by the XNA Framework

RemoveAt

Removes the element at the specified index of the ArrayList.

Public methodSupported by the .NET Compact FrameworkSupported by the XNA Framework

RemoveRange

Removes a range of elements from the ArrayList.

Public methodStatic

Repeat

Returns an ArrayList whose elements are copies of the specified value.

Public methodSupported by the .NET Compact FrameworkSupported by the XNA Framework

Reverse

Overloaded. Reverses the order of the elements in the ArrayList or a portion of it.

Public method

SetRange

Copies the elements of a collection over a range of elements in the ArrayList.

Public methodSupported by the .NET Compact FrameworkSupported by the XNA Framework

Sort

Overloaded. Sorts the elements in the ArrayList or a portion of it.

Public methodStaticSupported by the .NET Compact FrameworkSupported by the XNA Framework

Synchronized

Overloaded. Returns a list wrapper that is synchronized (thread safe).

Public methodSupported by the .NET Compact FrameworkSupported by the XNA Framework

ToArray

Overloaded. Copies the elements of the ArrayList to a new array.

Public methodSupported by the .NET Compact FrameworkSupported by the XNA Framework

ToString 

Returns a String that represents the current Object. (inherited from Object)

Public methodSupported by the .NET Compact FrameworkSupported by the XNA Framework

TrimToSize

Sets the capacity to the actual number of elements in the ArrayList.

Top

Protected MethodsProtected Methods

 

Name

Description

Protected methodSupported by the .NET Compact FrameworkSupported by the XNA Framework

Finalize 

Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (inherited from Object)

Protected methodSupported by the .NET Compact FrameworkSupported by the XNA Framework

MemberwiseClone 

Creates a shallow copy of the current Object. (inherited from Object)

Top

 

ArrayList Members 

Implements the IList interface using an array whose size is dynamically increased as required.

The following tables list the members exposed by the ArrayList type.

Public ConstructorsPublic Constructors

 

Name

Description

Public methodSupported by the .NET Compact FrameworkSupported by the XNA Framework

ArrayList

Overloaded. Initializes a new instance of the ArrayList class.

Top

Public PropertiesPublic Properties

 

Name

Description

Public propertySupported by the .NET Compact FrameworkSupported by the XNA Framework

Capacity

Gets or sets the number of elements that the ArrayList can contain.

Public propertySupported by the .NET Compact FrameworkSupported by the XNA Framework

Count

Gets the number of elements actually contained in the ArrayList.

Public propertySupported by the .NET Compact FrameworkSupported by the XNA Framework

IsFixedSize

Gets a value indicating whether the ArrayList has a fixed size.

Public propertySupported by the .NET Compact FrameworkSupported by the XNA Framework

IsReadOnly

Gets a value indicating whether the ArrayList is read-only.

Public propertySupported by the .NET Compact FrameworkSupported by the XNA Framework

IsSynchronized

Gets a value indicating whether access to the ArrayList is synchronized (thread safe).

Public propertySupported by the .NET Compact FrameworkSupported by the XNA Framework

Item

Gets or sets the element at the specified index.

Public propertySupported by the .NET Compact FrameworkSupported by the XNA Framework

SyncRoot

Gets an object that can be used to synchronize access to the ArrayList.

Top

Public MethodsPublic Methods

(see also Protected Methods )

 

Name

Description

Public methodStatic

Adapter

Creates an ArrayList wrapper for a specific IList.

Public methodSupported by the .NET Compact FrameworkSupported by the XNA Framework

Add

Adds an object to the end of the ArrayList.

Public methodSupported by the .NET Compact FrameworkSupported by the XNA Framework

AddRange

Adds the elements of an ICollection to the end of the ArrayList.

Public methodSupported by the .NET Compact FrameworkSupported by the XNA Framework

BinarySearch

Overloaded. Uses a binary search algorithm to locate a specific element in the sorted ArrayList or a portion of it.

Public methodSupported by the .NET Compact FrameworkSupported by the XNA Framework

Clear

Removes all elements from the ArrayList.

Public methodSupported by the .NET Compact FrameworkSupported by the XNA Framework

Clone

Creates a shallow copy of the ArrayList.

Public methodSupported by the .NET Compact FrameworkSupported by the XNA Framework

Contains

Determines whether an element is in the ArrayList.

Public methodSupported by the .NET Compact FrameworkSupported by the XNA Framework

CopyTo

Overloaded. Copies the ArrayList or a portion of it to a one-dimensional array.

Public methodSupported by the .NET Compact FrameworkSupported by the XNA Framework

Equals 

Overloaded. Determines whether two Object instances are equal. (inherited from Object)

Public methodStatic

FixedSize

Overloaded. Returns a list wrapper with a fixed size, where elements are allowed to be modified, but not added or removed.

Public methodSupported by the .NET Compact FrameworkSupported by the XNA Framework

GetEnumerator

Overloaded. Returns an enumerator that iterates through the ArrayList.

Public methodSupported by the .NET Compact FrameworkSupported by the XNA Framework

GetHashCode 

Serves as a hash function for a particular type. (inherited from Object)

Public method

GetRange

Returns an ArrayList which represents a subset of the elements in the source ArrayList.

Public methodSupported by the .NET Compact FrameworkSupported by the XNA Framework

GetType 

Gets the Type of the current instance. (inherited from Object)

Public methodSupported by the .NET Compact FrameworkSupported by the XNA Framework

IndexOf

Overloaded. Returns the zero-based index of the first occurrence of a value in the ArrayList or in a portion of it.

Public methodSupported by the .NET Compact FrameworkSupported by the XNA Framework

Insert

Inserts an element into the ArrayList at the specified index.

Public methodSupported by the .NET Compact FrameworkSupported by the XNA Framework

InsertRange

Inserts the elements of a collection into the ArrayList at the specified index.

Public method

LastIndexOf

Overloaded. Returns the zero-based index of the last occurrence of a value in the ArrayList or in a portion of it.

Public methodStatic

ReadOnly

Overloaded. Returns a list wrapper that is read-only.

Public methodStaticSupported by the .NET Compact Framework

ReferenceEquals 

Determines whether the specified Object instances are the same instance. (inherited from Object)

Public methodSupported by the .NET Compact FrameworkSupported by the XNA Framework

Remove

Removes the first occurrence of a specific object from the ArrayList.

Public methodSupported by the .NET Compact FrameworkSupported by the XNA Framework

RemoveAt

Removes the element at the specified index of the ArrayList.

Public methodSupported by the .NET Compact FrameworkSupported by the XNA Framework

RemoveRange

Removes a range of elements from the ArrayList.

Public methodStatic

Repeat

Returns an ArrayList whose elements are copies of the specified value.

Public methodSupported by the .NET Compact FrameworkSupported by the XNA Framework

Reverse

Overloaded. Reverses the order of the elements in the ArrayList or a portion of it.

Public method

SetRange

Copies the elements of a collection over a range of elements in the ArrayList.

Public methodSupported by the .NET Compact FrameworkSupported by the XNA Framework

Sort

Overloaded. Sorts the elements in the ArrayList or a portion of it.

Public methodStaticSupported by the .NET Compact FrameworkSupported by the XNA Framework

Synchronized

Overloaded. Returns a list wrapper that is synchronized (thread safe).

Public methodSupported by the .NET Compact FrameworkSupported by the XNA Framework

ToArray

Overloaded. Copies the elements of the ArrayList to a new array.

Public methodSupported by the .NET Compact FrameworkSupported by the XNA Framework

ToString 

Returns a String that represents the current Object. (inherited from Object)

Public methodSupported by the .NET Compact FrameworkSupported by the XNA Framework

TrimToSize

Sets the capacity to the actual number of elements in the ArrayList.

Top

Protected MethodsProtected Methods

 

Name

Description

Protected methodSupported by the .NET Compact FrameworkSupported by the XNA Framework

Finalize 

Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (inherited from Object)

Protected methodSupported by the .NET Compact FrameworkSupported by the XNA Framework

MemberwiseClone 

Creates a shallow copy of the current Object. (inherited from Object)

Top