ArrayList Members
Public Constructors
ArrayList Constructor Supported by the .NET Compact Framework. | Overloaded. Initializes a new instance of the ArrayList class. |
Public Properties
Capacity Supported by the .NET Compact Framework. | Gets or sets the number of elements that the ArrayList can contain. |
Count Supported by the .NET Compact Framework. | Gets the number of elements actually contained in the ArrayList. |
IsFixedSize Supported by the .NET Compact Framework. | Gets a value indicating whether the ArrayList has a fixed size. |
IsReadOnly Supported by the .NET Compact Framework. | Gets a value indicating whether the ArrayList is read-only. |
IsSynchronized Supported by the .NET Compact Framework. | 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 property is the indexer for the ArrayList class. |
SyncRoot Supported by the .NET Compact Framework. | Gets an object that can be used to synchronize access to the ArrayList. |
Public Methods
![]() Adapter | Creates an ArrayList wrapper for a specific IList. |
Add Supported by the .NET Compact Framework. | Adds an object to the end of the ArrayList. |
AddRange Supported by the .NET Compact Framework. | Adds the elements of an ICollection to the end of the ArrayList. |
BinarySearch Supported by the .NET Compact Framework. | Overloaded. Uses a binary search algorithm to locate a specific element in the sorted ArrayList or a portion of it. |
Clear Supported by the .NET Compact Framework. | Removes all elements from the ArrayList. |
Clone Supported by the .NET Compact Framework. | Creates a shallow copy of the ArrayList. |
Contains Supported by the .NET Compact Framework. | Determines whether an element is in the ArrayList. |
CopyTo Supported by the .NET Compact Framework. | Overloaded. Copies the ArrayList or a portion of it to a one-dimensional array. |
Equals (inherited from Object)
Supported by the .NET Compact Framework. | Overloaded. Determines whether two Object instances are equal. |
![]() FixedSize | Overloaded. Returns a list wrapper with a fixed size, where elements are allowed to be modified, but not added or removed. |
GetEnumerator Supported by the .NET Compact Framework. | Overloaded. Returns an enumerator that can iterate through the ArrayList. |
GetHashCode (inherited from Object)
Supported by the .NET Compact Framework. | Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. |
GetRange | Returns an ArrayList which represents a subset of the elements in the source ArrayList. |
GetType (inherited from Object)
Supported by the .NET Compact Framework. | Gets the Type of the current instance. |
IndexOf Supported by the .NET Compact Framework. | Overloaded. Returns the zero-based index of the first occurrence of a value in the ArrayList or in a portion of it. |
Insert Supported by the .NET Compact Framework. | Inserts an element into the ArrayList at the specified index. |
InsertRange Supported by the .NET Compact Framework. | Inserts the elements of a collection into the ArrayList at the specified index. |
LastIndexOf | Overloaded. Returns the zero-based index of the last occurrence of a value in the ArrayList or in a portion of it. |
![]() ReadOnly | Overloaded. Returns a list wrapper that is read-only. |
Remove Supported by the .NET Compact Framework. | Removes the first occurrence of a specific object from the ArrayList. |
RemoveAt Supported by the .NET Compact Framework. | Removes the element at the specified index of the ArrayList. |
RemoveRange Supported by the .NET Compact Framework. | Removes a range of elements from the ArrayList. |
![]() Repeat | Returns an ArrayList whose elements are copies of the specified value. |
Reverse Supported by the .NET Compact Framework. | 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 Supported by the .NET Compact Framework. | Overloaded. Sorts the elements in the ArrayList or a portion of it. |
![]() Synchronized Supported by the .NET Compact Framework. | Overloaded. Returns a list wrapper that is synchronized (thread-safe). |
ToArray Supported by the .NET Compact Framework. | Overloaded. Copies the elements of the ArrayList to a new array. |
ToString (inherited from Object)
Supported by the .NET Compact Framework. | Returns a String that represents the current Object. |
TrimToSize Supported by the .NET Compact Framework. | Sets the capacity to the actual number of elements in the ArrayList. |
Protected Methods
Finalize (inherited from Object)
Supported by the .NET Compact Framework. | Overridden. Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
In C# and C++, finalizers are expressed using destructor syntax. |
MemberwiseClone (inherited from Object)
Supported by the .NET Compact Framework. | Creates a shallow copy of the current Object. |
