Array Class |
Namespace: System
[SerializableAttribute] public abstract class Array : ICloneable, IList, ICollection, IEnumerable, IStructuralComparable, IStructuralEquatable
The Array type exposes the following members.
Name | Description | |
---|---|---|
AsReadOnlyT | Returns a read-only wrapper for the specified array. | |
Clear | Sets a range of elements in the Array to zero, to false, or to null, depending on the element type. | |
Clone | Creates a shallow copy of the Array. | |
ConvertAllTInput, TOutput | Converts an array of one type to an array of another type. | |
Copy(Array, Array, Int32) | Copies a range of elements from an Array starting at the first element and pastes them into another Array starting at the first element. The length is specified as a 32-bit integer. | |
Copy(Array, Array, Int64) | Copies a range of elements from an Array starting at the first element and pastes them into another Array starting at the first element. The length is specified as a 64-bit integer. | |
Copy(Array, Int32, Array, Int32, Int32) | Copies a range of elements from an Array starting at the specified source index and pastes them to another Array starting at the specified destination index. The length and the indexes are specified as 32-bit integers. | |
Copy(Array, Int64, Array, Int64, Int64) | Copies a range of elements from an Array starting at the specified source index and pastes them to another Array starting at the specified destination index. The length and the indexes are specified as 64-bit integers. | |
CopyTo(Array, Int32) | Copies all the elements of the current one-dimensional Array to the specified one-dimensional Array starting at the specified destination Array index. The index is specified as a 32-bit integer. | |
CopyTo(Array, Int64) | Copies all the elements of the current one-dimensional Array to the specified one-dimensional Array starting at the specified destination Array index. The index is specified as a 64-bit integer. | |
CreateInstance(Type, Int32) | Creates a one-dimensional Array of the specified Type and length, with zero-based indexing. | |
CreateInstance(Type, Int32) | Creates a multidimensional Array of the specified Type and dimension lengths, with zero-based indexing. The dimension lengths are specified in an array of 32-bit integers. | |
CreateInstance(Type, Int64) | Creates a multidimensional Array of the specified Type and dimension lengths, with zero-based indexing. The dimension lengths are specified in an array of 64-bit integers. | |
CreateInstance(Type, Int32, Int32) | Creates a two-dimensional Array of the specified Type and dimension lengths, with zero-based indexing. | |
CreateInstance(Type, Int32, Int32) | Creates a multidimensional Array of the specified Type and dimension lengths, with the specified lower bounds. | |
CreateInstance(Type, Int32, Int32, Int32) | Creates a three-dimensional Array of the specified Type and dimension lengths, with zero-based indexing. | |
Equals(Object) | (Inherited from Object.) | |
ExistsT | Determines whether the specified array contains elements that match the conditions defined by the specified predicate. | |
FindT | Searches for an element that matches the conditions defined by the specified predicate, and returns the first occurrence within the entire Array. | |
FindAllT | Retrieves all the elements that match the conditions defined by the specified predicate. | |
FindIndexT(T, PredicateT) | Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the first occurrence within the entire Array. | |
FindIndexT(T, Int32, PredicateT) | Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the first occurrence within the range of elements in the Array that extends from the specified index to the last element. | |
FindIndexT(T, Int32, Int32, PredicateT) | Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the first occurrence within the range of elements in the Array that starts at the specified index and contains the specified number of elements. | |
FindLastT | Searches for an element that matches the conditions defined by the specified predicate, and returns the last occurrence within the entire Array. | |
FindLastIndexT(T, PredicateT) | Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the last occurrence within the entire Array. | |
FindLastIndexT(T, Int32, PredicateT) | Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the last occurrence within the range of elements in the Array that extends from the first element to the specified index. | |
FindLastIndexT(T, Int32, Int32, PredicateT) | Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the last occurrence within the range of elements in the Array that contains the specified number of elements and ends at the specified index. | |
ForEachT | Performs the specified action on each element of the specified array. | |
GetEnumerator | Returns an IEnumerator for the Array. | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
GetValue(Int32) | Gets the value at the specified position in the one-dimensional Array. The index is specified as a 32-bit integer. | |
GetValue(Int32) | Gets the value at the specified position in the multidimensional Array. The indexes are specified as an array of 32-bit integers. | |
GetValue(Int64) | Gets the value at the specified position in the one-dimensional Array. The index is specified as a 64-bit integer. | |
GetValue(Int64) | Gets the value at the specified position in the multidimensional Array. The indexes are specified as an array of 64-bit integers. | |
GetValue(Int32, Int32) | Gets the value at the specified position in the two-dimensional Array. The indexes are specified as 32-bit integers. | |
GetValue(Int64, Int64) | Gets the value at the specified position in the two-dimensional Array. The indexes are specified as 64-bit integers. | |
GetValue(Int32, Int32, Int32) | Gets the value at the specified position in the three-dimensional Array. The indexes are specified as 32-bit integers. | |
GetValue(Int64, Int64, Int64) | Gets the value at the specified position in the three-dimensional Array. The indexes are specified as 64-bit integers. | |
IndexOf(Array, Object) | Searches for the specified object and returns the index of the first occurrence within the entire one-dimensional Array. | |
IndexOf(Array, Object, Int32) | Searches for the specified object and returns the index of the first occurrence within the range of elements in the one-dimensional Array that extends from the specified index to the last element. | |
IndexOf(Array, Object, Int32, Int32) | Searches for the specified object and returns the index of the first occurrence within the range of elements in the one-dimensional Array that starts at the specified index and contains the specified number of elements. | |
IndexOfT(T, T) | Searches for the specified object and returns the index of the first occurrence within the entire Array. | |
IndexOfT(T, T, Int32) | Searches for the specified object and returns the index of the first occurrence within the range of elements in the Array that extends from the specified index to the last element. | |
IndexOfT(T, T, Int32, Int32) | Searches for the specified object and returns the index of the first occurrence within the range of elements in the Array that starts at the specified index and contains the specified number of elements. | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ResizeT | Changes the number of elements of an array to the specified new size. | |
SetValue(Object, Int32) | Sets a value to the element at the specified position in the one-dimensional Array. The index is specified as a 32-bit integer. | |
SetValue(Object, Int32) | Sets a value to the element at the specified position in the multidimensional Array. The indexes are specified as an array of 32-bit integers. | |
SetValue(Object, Int64) | Sets a value to the element at the specified position in the one-dimensional Array. The index is specified as a 64-bit integer. | |
SetValue(Object, Int64) | Sets a value to the element at the specified position in the multidimensional Array. The indexes are specified as an array of 64-bit integers. | |
SetValue(Object, Int32, Int32) | Sets a value to the element at the specified position in the two-dimensional Array. The indexes are specified as 32-bit integers. | |
SetValue(Object, Int64, Int64) | Sets a value to the element at the specified position in the two-dimensional Array. The indexes are specified as 64-bit integers. | |
SetValue(Object, Int32, Int32, Int32) | Sets a value to the element at the specified position in the three-dimensional Array. The indexes are specified as 32-bit integers. | |
SetValue(Object, Int64, Int64, Int64) | Sets a value to the element at the specified position in the three-dimensional Array. The indexes are specified as 64-bit integers. | |
Sort(Array) | Sorts the elements in an entire one-dimensional Array using the IComparable implementation of each element of the Array. | |
Sort(Array, Array) | Sorts a pair of one-dimensional Array objects (one contains the keys and the other contains the corresponding items) based on the keys in the first Array using the IComparable implementation of each key. | |
Sort(Array, IComparer) | Sorts the elements in a one-dimensional Array using the specified IComparer. | |
Sort(Array, Array, IComparer) | Sorts a pair of one-dimensional Array objects (one contains the keys and the other contains the corresponding items) based on the keys in the first Array using the specified IComparer. | |
Sort(Array, Int32, Int32) | Sorts the elements in a range of elements in a one-dimensional Array using the IComparable implementation of each element of the Array. | |
Sort(Array, Array, Int32, Int32) | Sorts a range of elements in a pair of one-dimensional Array objects (one contains the keys and the other contains the corresponding items) based on the keys in the first Array using the IComparable implementation of each key. | |
Sort(Array, Int32, Int32, IComparer) | Sorts the elements in a range of elements in a one-dimensional Array using the specified IComparer. | |
Sort(Array, Array, Int32, Int32, IComparer) | Sorts a range of elements in a pair of one-dimensional Array objects (one contains the keys and the other contains the corresponding items) based on the keys in the first Array using the specified IComparer. | |
SortT(T) | Sorts the elements in an entire Array using the IComparableT generic interface implementation of each element of the Array. | |
SortT(T, IComparerT) | Sorts the elements in an Array using the specified IComparerT generic interface. | |
SortT(T, ComparisonT) | Sorts the elements in an Array using the specified ComparisonT. | |
SortT(T, Int32, Int32) | Sorts the elements in a range of elements in an Array using the IComparableT generic interface implementation of each element of the Array. | |
SortT(T, Int32, Int32, IComparerT) | Sorts the elements in a range of elements in an Array using the specified IComparerT generic interface. | |
SortTKey, TValue(TKey, TValue) | Sorts a pair of Array objects (one contains the keys and the other contains the corresponding items) based on the keys in the first Array using the IComparableT generic interface implementation of each key. | |
SortTKey, TValue(TKey, TValue, IComparerTKey) | Sorts a pair of Array objects (one contains the keys and the other contains the corresponding items) based on the keys in the first Array using the specified IComparerT generic interface. | |
SortTKey, TValue(TKey, TValue, Int32, Int32) | Sorts a range of elements in a pair of Array objects (one contains the keys and the other contains the corresponding items) based on the keys in the first Array using the IComparableT generic interface implementation of each key. | |
SortTKey, TValue(TKey, TValue, Int32, Int32, IComparerTKey) | Sorts a range of elements in a pair of Array objects (one contains the keys and the other contains the corresponding items) based on the keys in the first Array using the specified IComparerT generic interface. | |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
TrueForAllT | Determines whether every element in the array matches the conditions defined by the specified predicate. |
Name | Description | |
---|---|---|
Length | Gets a 32-bit integer that represents the total number of elements in all the dimensions of the Array. | |
LongLength | Gets a 64-bit integer that represents the total number of elements in all the dimensions of the Array. |