Array Members
The following tables list the members exposed by the Array type.
Protected Constructors
Name | Description | |
---|---|---|
Array | Initializes an instance of the Array class. |
Public Properties
Name | Description | |
---|---|---|
IsFixedSize | Gets a value indicating whether a specific array has a fixed size. | |
IsReadOnly | Gets a value indicating whether a specific array is read-only. | |
IsSynchronized | Gets a value indicating whether access to a specific array is synchronized. | |
Length | Gets a 32-bit integer that represents the total number of objects in all the dimensions of a specific array. | |
SyncRoot | Gets an object that you can use to synchronize access to a specific array. |
Public Methods
Name | Description | |
---|---|---|
BinarySearch | Overloaded. Searches a one-dimensional sorted array for a specified value, using a binary search algorithm. | |
Clear | Sets a range of objects in a specified array to 0 (zero), to false, or to a null reference, depending on the object type. | |
Clone | Creates a shallow copy of an array. | |
Copy | Overloaded. Copies a specified range of objects from an array to another array and performs type casting and boxing, as required. | |
CopyTo | Copies all of the objects from a one-dimensional array (source array) to another one-dimensional array (destination array), starting at the specified index number in the destination array. You specify this index number as a 32-bit integer. | |
CreateInstance | Creates a one-dimensional array of the specified type and length, with zero-based indexing. | |
Equals | (Inherited from Object.) | |
GetEnumerator | Gets an IEnumerator object for a specified array. | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
GetValue | Gets the value of the object at a specified position in a one-dimensional array. | |
IndexOf | Overloaded. Returns the index number of the first occurrence of a specified object (if any) in a one-dimensional array or in a specified range within that array. | |
ReferenceEquals | (Inherited from Object.) | |
ToString | (Inherited from Object.) |
Protected Methods
Name | Description | |
---|---|---|
Finalize | (Inherited from Object.) | |
MemberwiseClone | (Inherited from Object.) |
Explicit Interface Implementations
Name | Description | |
---|---|---|
System.Collections.ICollection.Count | Gets the number of objects contained in a specific array. | |
System.Collections.IList.Add | Adds an object to an array. | |
System.Collections.IList.Clear | Sets all of the objects in a specific array to 0 (zero), to false, or to a null reference, depending on the object type. | |
System.Collections.IList.Contains | Determines whether a specified object is contained in a specific array. | |
System.Collections.IList.IndexOf | Searches for a specified object in a one-dimensional array and returns the index number of the first occurrence of that object (if any) in the array. | |
System.Collections.IList.Insert | Inserts an object at a specified location (index number) in an array. | |
System.Collections.IList.RemoveAt | Removes the object at a specified location (index number) in an array. | |
System.Collections.IList.Remove | Removes a specified object from an array. |