Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
ArrayList Methods

ArrayList Methods

The ArrayList type exposes the following members.

  Name Description
Public method Static member Adapter Creates an ArrayList wrapper for a specific IList.
Public method Supported by the XNA Framework Add Adds an object to the end of the ArrayList.
Public method Supported by the XNA Framework AddRange Adds the elements of an ICollection to the end of the ArrayList.
Public method BinarySearch(Object) Searches the entire sorted ArrayList for an element using the default comparer and returns the zero-based index of the element.
Public method BinarySearch(Object, IComparer) Searches the entire sorted ArrayList for an element using the specified comparer and returns the zero-based index of the element.
Public method Supported by the XNA Framework BinarySearch(Int32, Int32, Object, IComparer) 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.
Public method Supported by the XNA Framework Clear Removes all elements from the ArrayList.
Public method Supported by the XNA Framework Clone Creates a shallow copy of the ArrayList.
Public method Supported by the XNA Framework Contains Determines whether an element is in the ArrayList.
Public method Supported by the XNA Framework CopyTo(Array) Copies the entire ArrayList to a compatible one-dimensional Array, starting at the beginning of the target array.
Public method Supported by the XNA Framework CopyTo(Array, Int32) Copies the entire ArrayList to a compatible one-dimensional Array, starting at the specified index of the target array.
Public method Supported by the XNA Framework CopyTo(Int32, Array, Int32, Int32) Copies a range of elements from the ArrayList to a compatible one-dimensional Array, starting at the specified index of the target array.
Public method Supported by the XNA Framework Equals(Object) Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Supported by the XNA Framework Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method Static member FixedSize(ArrayList) Returns an ArrayList wrapper with a fixed size.
Public method Static member FixedSize(IList) Returns an IList wrapper with a fixed size.
Public method Supported by the XNA Framework GetEnumerator() Returns an enumerator for the entire ArrayList.
Public method GetEnumerator(Int32, Int32) Returns an enumerator for a range of elements in the ArrayList.
Public method Supported by the XNA Framework GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetRange Returns an ArrayList which represents a subset of the elements in the source ArrayList.
Public method Supported by the XNA Framework GetType Gets the Type of the current instance. (Inherited from Object.)
Public method Supported by the XNA Framework IndexOf(Object) Searches for the specified Object and returns the zero-based index of the first occurrence within the entire ArrayList.
Public method IndexOf(Object, Int32) 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.
Public method Supported by the XNA Framework IndexOf(Object, Int32, Int32) 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.
Public method Supported by the XNA Framework Insert Inserts an element into the ArrayList at the specified index.
Public method Supported by the XNA Framework InsertRange Inserts the elements of a collection into the ArrayList at the specified index.
Public method LastIndexOf(Object) Searches for the specified Object and returns the zero-based index of the last occurrence within the entire ArrayList.
Public method LastIndexOf(Object, Int32) 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.
Public method LastIndexOf(Object, Int32, Int32) 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.
Protected method Supported by the XNA Framework MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Static member ReadOnly(ArrayList) Returns a read-only ArrayList wrapper.
Public method Static member ReadOnly(IList) Returns a read-only IList wrapper.
Public method Supported by the XNA Framework Remove Removes the first occurrence of a specific object from the ArrayList.
Public method Supported by the XNA Framework RemoveAt Removes the element at the specified index of the ArrayList.
Public method Supported by the XNA Framework RemoveRange Removes a range of elements from the ArrayList.
Public method Static member Repeat Returns an ArrayList whose elements are copies of the specified value.
Public method Supported by the XNA Framework Reverse() Reverses the order of the elements in the entire ArrayList.
Public method Supported by the XNA Framework Reverse(Int32, Int32) Reverses the order of the elements in the specified range.
Public method SetRange Copies the elements of a collection over a range of elements in the ArrayList.
Public method Supported by the XNA Framework Sort() Sorts the elements in the entire ArrayList.
Public method Supported by the XNA Framework Sort(IComparer) Sorts the elements in the entire ArrayList using the specified comparer.
Public method Supported by the XNA Framework Sort(Int32, Int32, IComparer) Sorts the elements in a range of elements in ArrayList using the specified comparer.
Public method Static member Supported by the XNA Framework Synchronized(ArrayList) Returns an ArrayList wrapper that is synchronized (thread safe).
Public method Static member Synchronized(IList) Returns an IList wrapper that is synchronized (thread safe).
Public method Supported by the XNA Framework ToArray() Copies the elements of the ArrayList to a new Object array.
Public method Supported by the XNA Framework ToArray(Type) Copies the elements of the ArrayList to a new array of the specified element type.
Public method Supported by the XNA Framework ToString Returns a string that represents the current object. (Inherited from Object.)
Public method Supported by the XNA Framework TrimToSize Sets the capacity to the actual number of elements in the ArrayList.
Top

  Name Description
Public Extension Method AsParallel() Overloaded. Enables parallelization of a query. (Defined by ParallelEnumerable.)
Public Extension Method AsParallel() Overloaded. (Defined by ParallelEnumerable.)
Public Extension Method AsQueryable() Overloaded. Converts an IEnumerable to an IQueryable. (Defined by Queryable.)
Public Extension Method AsQueryable() Overloaded. (Defined by Queryable.)
Public Extension Method Supported by the XNA Framework Cast<TResult>() Overloaded. Casts the elements of an IEnumerable to the specified type. (Defined by Enumerable.)
Public Extension Method Supported by the XNA Framework Cast<TResult>() Overloaded. (Defined by Enumerable.)
Public Extension Method Supported by the XNA Framework OfType<TResult>() Overloaded. Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.)
Public Extension Method Supported by the XNA Framework OfType<TResult>() Overloaded. (Defined by Enumerable.)
Top
Show:
© 2015 Microsoft