Вы находитесь на странице: 1из 3

List Methods

.NET Framework 4.5 Other Versions

2 out of 2 rated this helpful The ArrayList type exposes the following members. Methods Show: Inherited Name Protected Description Creates an ArrayList wrapper for a specific IList. Adds an object to the end of the ArrayList. Adds the elements of an ICollection to the end of the ArrayList. Searches the entire sorted ArrayList for an element using the default comparer and returns the zero-based index of the element. Searches the entire sorted ArrayList for an element using the specified comparer and returns the zero-based index of the element. 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. Removes all elements from the ArrayList. Creates a shallow copy of the ArrayList. Determines whether an element is in the ArrayList. Copies the entire ArrayList to a compatible one-dimensional Array, starting at the beginning of the target array. Copies the entire ArrayList to a compatible one-dimensional Array, starting at the specified index of the target array. Copies a range of elements from the ArrayList to a compatible one-dimensional Array, starting at the specified index of the target array. Determines whether the specified object is equal to the current object. (Inherited from Object.) Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)

Adapter Add AddRange BinarySearch(Object) BinarySearch(Object, IComparer) BinarySearch(Int32, Int32, Object, IComparer) Clear Clone Contains CopyTo(Array) CopyTo(Array, Int32) CopyTo(Int32, Array, Int32, Int32) Equals(Object) Finalize

FixedSize(ArrayList) FixedSize(IList) GetEnumerator() GetEnumerator(Int32, Int32) GetHashCode

Returns an ArrayList wrapper with a fixed size. Returns an IList wrapper with a fixed size. Returns an enumerator for the entire ArrayList. Returns an enumerator for a range of elements in the ArrayList. Serves as the default hash function. (Inherited from Object.) Returns an ArrayList which represents a subset of the elements GetRange in the source ArrayList. GetType Gets the Type of the current instance. (Inherited from Object.) Searches for the specified Object and returns the zero-based IndexOf(Object) index of the first occurrence within the entire ArrayList. Searches for the specified Object and returns the zero-based index of the first occurrence within the range of elements in the IndexOf(Object, Int32) ArrayList that extends from the specified index to the last element. Searches for the specified Object and returns the zero-based index of the first occurrence within the range of elements in the IndexOf(Object, Int32, Int32) ArrayList that starts at the specified index and contains the specified number of elements. Insert Inserts an element into the ArrayList at the specified index. Inserts the elements of a collection into the ArrayList at the InsertRange specified index. Searches for the specified Object and returns the zero-based LastIndexOf(Object) index of the last occurrence within the entire ArrayList. Searches for the specified Object and returns the zero-based index of the last occurrence within the range of elements in the LastIndexOf(Object, Int32) ArrayList that extends from the first element to the specified index. Searches for the specified Object and returns the zero-based LastIndexOf(Object, Int32, index of the last occurrence within the range of elements in the Int32) ArrayList that contains the specified number of elements and ends at the specified index. Creates a shallow copy of the current Object. (Inherited from MemberwiseClone Object.) ReadOnly(ArrayList) Returns a read-only ArrayList wrapper. ReadOnly(IList) Returns a read-only IList wrapper. Removes the first occurrence of a specific object from the Remove ArrayList. RemoveAt Removes the element at the specified index of the ArrayList. RemoveRange Removes a range of elements from the ArrayList. Returns an ArrayList whose elements are copies of the specified Repeat value.

Reverses the order of the elements in the entire ArrayList. Reverses the order of the elements in the specified range. Copies the elements of a collection over a range of elements in SetRange the ArrayList. Sort() Sorts the elements in the entire ArrayList. Sorts the elements in the entire ArrayList using the specified Sort(IComparer) comparer. Sorts the elements in a range of elements in ArrayList using the Sort(Int32, Int32, IComparer) specified comparer. Synchronized(ArrayList) Returns an ArrayList wrapper that is synchronized (thread safe). Synchronized(IList) Returns an IList wrapper that is synchronized (thread safe). ToArray() Copies the elements of the ArrayList to a new Object array. Copies the elements of the ArrayList to a new array of the ToArray(Type) specified element type. Returns a string that represents the current object. (Inherited ToString from Object.) Sets the capacity to the actual number of elements in the TrimToSize ArrayList. Top

Reverse() Reverse(Int32, Int32)

Вам также может понравиться