NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ArrayList Members

Public:

Constructor

ArrayList Constructor Overloaded. Initializes a new instance of the ArrayList class.

Properties

Capacity Gets or sets the number of elements that the ArrayList can contain.
Count Gets the number of elements that the ArrayList actually contains.
IsReadOnly Gets a value indicating whether the ArrayList is read-only.
IsSynchronized Gets a value indicating whether access to the ArrayList is synchronized (thread-safe).
Item Gets or sets the element at the specified index.

In C#, this member is the indexer for the ArrayList class.

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

Methods

Adapter Creates an ArrayList wrapper for a specific IList.
Add Adds an object to the end of the ArrayList.
AddRange Adds the elements of an ICollection to the end of the ArrayList.
BinarySearch Searches a section of the sorted ArrayList for an element, using a binary search algorithm, and returns the index of the element.
Clear Clears the contents of the ArrayList.
Clone Creates a shallow copy of the ArrayList.
Contains Determines if an element is in the ArrayList.
CopyTo Overloaded. Copies the ArrayList, or a portion of it, into a one-dimensional array.
Equals (inherited from Object) Determines whether the specified Object is the same instance as the current Object. Subclasses are expected to override this method to support value equality (not reference equality).
FixedSize Overloaded. Returns a list wrapper with a fixed size, where elements are only allowed to be modified, not added or removed.
GetEnumerator Overloaded. Returns an enumerator which can be used to iterate through the ArrayList.
GetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetRange Copies a range of elements in the ArrayList into a new ArrayList.
GetType (inherited from Object) Gets the Type of the Object.
IndexOf Overloaded. Returns the index of the first occurrence of a value in the ArrayList, or in a portion of it.
Insert Inserts an element into the ArrayList at the specified index.
InsertRange Inserts the elements of a collection into the ArrayList at the specified index.
LastIndexOf Overloaded. Returns the index of the last occurrence of a value in the ArrayList, or in a portion of it.
ReadOnly Overloaded. Returns a list wrapper that allows read-only access.
Remove Removes a specific object from the ArrayList.
RemoveAt Removes the element at the specified index of the ArrayList.
RemoveRange Removes a range of elements from the ArrayList.
Repeat Returns an ArrayList whose elements are copies of the specified value.
Reverse Overloaded. Reverses the order of the elements in the ArrayList, or a portion of it.
SetRange Copies the elements of a collection over a range of elements in the ArrayList.
Sort Overloaded. Sorts the elements in the ArrayList, or a portion of it.
Synchronized Overloaded. Returns a list wrapper that is synchronized (thread-safe).
ToArray Overloaded. Copies the elements of the ArrayList to a new array.
ToString (inherited from Object) Returns a String that represents the current Object.
TrimToSize Sets the capacity of the ArrayList to the actual number of elements in it.

Protected:

Methods

Finalize (inherited from Object) Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by the Garbage Collector (GC). This method may be ignored by the runtime; therefore, necessary cleanup operations should be done elsewhere.
MemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.

See Also

ArrayList Class | System.Collections Namespace