mscorlib(4.0.0.0) API with additions
|
Provides methods for creating, manipulating, searching, and sorting arrays, thereby serving as the base class for all arrays in the common language runtime.To browse the .NET Framework source code for this type, see the Reference Source. More...
Public Member Functions | |
static void | Clear (Array array, int index, int length) |
Sets a range of elements in an array to the default value of each element type. More... | |
unsafe object | GetValue (params int[] indices) |
Gets the value at the specified position in the multidimensional T:System.Array. The indexes are specified as an array of 32-bit integers. More... | |
unsafe object | GetValue (int index) |
Gets the value at the specified position in the one-dimensional T:System.Array. The index is specified as a 32-bit integer. More... | |
unsafe object | GetValue (int index1, int index2) |
Gets the value at the specified position in the two-dimensional T:System.Array. The indexes are specified as 32-bit integers. More... | |
unsafe object | GetValue (int index1, int index2, int index3) |
Gets the value at the specified position in the three-dimensional T:System.Array. The indexes are specified as 32-bit integers. More... | |
object | GetValue (long index) |
Gets the value at the specified position in the one-dimensional T:System.Array. The index is specified as a 64-bit integer. More... | |
object | GetValue (long index1, long index2) |
Gets the value at the specified position in the two-dimensional T:System.Array. The indexes are specified as 64-bit integers. More... | |
object | GetValue (long index1, long index2, long index3) |
Gets the value at the specified position in the three-dimensional T:System.Array. The indexes are specified as 64-bit integers. More... | |
object | GetValue (params long[] indices) |
Gets the value at the specified position in the multidimensional T:System.Array. The indexes are specified as an array of 64-bit integers. More... | |
unsafe void | SetValue (object value, int index) |
Sets a value to the element at the specified position in the one-dimensional T:System.Array. The index is specified as a 32-bit integer. More... | |
unsafe void | SetValue (object value, int index1, int index2) |
Sets a value to the element at the specified position in the two-dimensional T:System.Array. The indexes are specified as 32-bit integers. More... | |
unsafe void | SetValue (object value, int index1, int index2, int index3) |
Sets a value to the element at the specified position in the three-dimensional T:System.Array. The indexes are specified as 32-bit integers. More... | |
unsafe void | SetValue (object value, params int[] indices) |
Sets a value to the element at the specified position in the multidimensional T:System.Array. The indexes are specified as an array of 32-bit integers. More... | |
void | SetValue (object value, long index) |
Sets a value to the element at the specified position in the one-dimensional T:System.Array. The index is specified as a 64-bit integer. More... | |
void | SetValue (object value, long index1, long index2) |
Sets a value to the element at the specified position in the two-dimensional T:System.Array. The indexes are specified as 64-bit integers. More... | |
void | SetValue (object value, long index1, long index2, long index3) |
Sets a value to the element at the specified position in the three-dimensional T:System.Array. The indexes are specified as 64-bit integers. More... | |
void | SetValue (object value, params long[] indices) |
Sets a value to the element at the specified position in the multidimensional T:System.Array. The indexes are specified as an array of 64-bit integers. More... | |
int | GetLength (int dimension) |
Gets a 32-bit integer that represents the number of elements in the specified dimension of the T:System.Array. More... | |
long | GetLongLength (int dimension) |
Gets a 64-bit integer that represents the number of elements in the specified dimension of the T:System.Array. More... | |
int | GetUpperBound (int dimension) |
Gets the index of the last element of the specified dimension in the array. More... | |
int | GetLowerBound (int dimension) |
Gets the index of the first element of the specified dimension in the array. More... | |
object | Clone () |
Creates a shallow copy of the T:System.Array. More... | |
void | CopyTo (Array array, int index) |
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. More... | |
void | CopyTo (Array array, long index) |
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. More... | |
IEnumerator | GetEnumerator () |
Returns an T:System.Collections.IEnumerator for the T:System.Array. More... | |
void | Initialize () |
Initializes every element of the value-type T:System.Array by calling the default constructor of the value type. More... | |
Static Public Member Functions | |
static ReadOnlyCollection< T > | AsReadOnly< T > (T[] array) |
Returns a read-only wrapper for the specified array. More... | |
static void | Resize< T > (ref T[] array, int newSize) |
Changes the number of elements of a one-dimensional array to the specified new size. More... | |
static unsafe Array | CreateInstance (Type elementType, int length) |
Creates a one-dimensional T:System.Array of the specified T:System.Type and length, with zero-based indexing. More... | |
static unsafe Array | CreateInstance (Type elementType, int length1, int length2) |
Creates a two-dimensional T:System.Array of the specified T:System.Type and dimension lengths, with zero-based indexing. More... | |
static unsafe Array | CreateInstance (Type elementType, int length1, int length2, int length3) |
Creates a three-dimensional T:System.Array of the specified T:System.Type and dimension lengths, with zero-based indexing. More... | |
static unsafe Array | CreateInstance (Type elementType, params int[] lengths) |
Creates a multidimensional T:System.Array of the specified T:System.Type and dimension lengths, with zero-based indexing. The dimension lengths are specified in an array of 32-bit integers. More... | |
static Array | CreateInstance (Type elementType, params long[] lengths) |
Creates a multidimensional T:System.Array of the specified T:System.Type and dimension lengths, with zero-based indexing. The dimension lengths are specified in an array of 64-bit integers. More... | |
static unsafe Array | CreateInstance (Type elementType, int[] lengths, int[] lowerBounds) |
Creates a multidimensional T:System.Array of the specified T:System.Type and dimension lengths, with the specified lower bounds. More... | |
static void | Copy (Array sourceArray, Array destinationArray, int length) |
Copies a range of elements from an T:System.Array starting at the first element and pastes them into another T:System.Array starting at the first element. The length is specified as a 32-bit integer. More... | |
static void | Copy (Array sourceArray, int sourceIndex, Array destinationArray, int destinationIndex, int length) |
Copies a range of elements from an T:System.Array starting at the specified source index and pastes them to another T:System.Array starting at the specified destination index. The length and the indexes are specified as 32-bit integers. More... | |
static void | ConstrainedCopy (Array sourceArray, int sourceIndex, Array destinationArray, int destinationIndex, int length) |
Copies a range of elements from an T:System.Array starting at the specified source index and pastes them to another T:System.Array starting at the specified destination index. Guarantees that all changes are undone if the copy does not succeed completely. More... | |
static void | Copy (Array sourceArray, Array destinationArray, long length) |
Copies a range of elements from an T:System.Array starting at the first element and pastes them into another T:System.Array starting at the first element. The length is specified as a 64-bit integer. More... | |
static void | Copy (Array sourceArray, long sourceIndex, Array destinationArray, long destinationIndex, long length) |
Copies a range of elements from an T:System.Array starting at the specified source index and pastes them to another T:System.Array starting at the specified destination index. The length and the indexes are specified as 64-bit integers. More... | |
static int | BinarySearch (Array array, object value) |
Searches an entire one-dimensional sorted array for a specific element, using the T:System.IComparable interface implemented by each element of the array and by the specified object. More... | |
static int | BinarySearch (Array array, int index, int length, object value) |
Searches a range of elements in a one-dimensional sorted array for a value, using the T:System.IComparable interface implemented by each element of the array and by the specified value. More... | |
static int | BinarySearch (Array array, object value, IComparer comparer) |
Searches an entire one-dimensional sorted array for a value using the specified T:System.Collections.IComparer interface. More... | |
static int | BinarySearch (Array array, int index, int length, object value, IComparer comparer) |
Searches a range of elements in a one-dimensional sorted array for a value, using the specified T:System.Collections.IComparer interface. More... | |
static int | BinarySearch< T > (T[] array, T value) |
Searches an entire one-dimensional sorted array for a specific element, using the T:System.IComparable`1 generic interface implemented by each element of the T:System.Array and by the specified object. More... | |
static int | BinarySearch< T > (T[] array, T value, IComparer< T > comparer) |
Searches an entire one-dimensional sorted array for a value using the specified T:System.Collections.Generic.IComparer`1 generic interface. More... | |
static int | BinarySearch< T > (T[] array, int index, int length, T value) |
Searches a range of elements in a one-dimensional sorted array for a value, using the T:System.IComparable`1 generic interface implemented by each element of the T:System.Array and by the specified value. More... | |
static int | BinarySearch< T > (T[] array, int index, int length, T value, IComparer< T > comparer) |
Searches a range of elements in a one-dimensional sorted array for a value, using the specified T:System.Collections.Generic.IComparer`1 generic interface. More... | |
static TOutput [] | ConvertAll< TInput, TOutput > (TInput[] array, Converter< TInput, TOutput > converter) |
Converts an array of one type to an array of another type. More... | |
static T [] | Empty< T > () |
Returns an empty array. More... | |
static bool | Exists< T > (T[] array, Predicate< T > match) |
Determines whether the specified array contains elements that match the conditions defined by the specified predicate. More... | |
static T | Find< T > (T[] array, Predicate< T > match) |
Searches for an element that matches the conditions defined by the specified predicate, and returns the first occurrence within the entire T:System.Array. More... | |
static T [] | FindAll< T > (T[] array, Predicate< T > match) |
Retrieves all the elements that match the conditions defined by the specified predicate. More... | |
static int | FindIndex< T > (T[] array, Predicate< T > match) |
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 T:System.Array. More... | |
static int | FindIndex< T > (T[] array, int startIndex, Predicate< T > match) |
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 T:System.Array that extends from the specified index to the last element. More... | |
static int | FindIndex< T > (T[] array, int startIndex, int count, Predicate< T > match) |
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 T:System.Array that starts at the specified index and contains the specified number of elements. More... | |
static T | FindLast< T > (T[] array, Predicate< T > match) |
Searches for an element that matches the conditions defined by the specified predicate, and returns the last occurrence within the entire T:System.Array. More... | |
static int | FindLastIndex< T > (T[] array, Predicate< T > match) |
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 T:System.Array. More... | |
static int | FindLastIndex< T > (T[] array, int startIndex, Predicate< T > match) |
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 T:System.Array that extends from the first element to the specified index. More... | |
static int | FindLastIndex< T > (T[] array, int startIndex, int count, Predicate< T > match) |
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 T:System.Array that contains the specified number of elements and ends at the specified index. More... | |
static void | ForEach< T > (T[] array, Action< T > action) |
Performs the specified action on each element of the specified array. More... | |
static int | IndexOf (Array array, object value) |
Searches for the specified object and returns the index of its first occurrence in a one-dimensional array. More... | |
static int | IndexOf (Array array, object value, int startIndex) |
Searches for the specified object in a range of elements of a one-dimensional array, and returns the index of its first occurrence. The range extends from a specified index to the end of the array. More... | |
static int | IndexOf (Array array, object value, int startIndex, int count) |
Searches for the specified object in a range of elements of a one-dimensional array, and returns the index of ifs first occurrence. The range extends from a specified index for a specified number of elements. More... | |
static int | IndexOf< T > (T[] array, T value) |
Searches for the specified object and returns the index of its first occurrence in a one-dimensional array. More... | |
static int | IndexOf< T > (T[] array, T value, int startIndex) |
Searches for the specified object in a range of elements of a one dimensional array, and returns the index of its first occurrence. The range extends from a specified index to the end of the array. More... | |
static int | IndexOf< T > (T[] array, T value, int startIndex, int count) |
Searches for the specified object in a range of elements of a one-dimensional array, and returns the index of its first occurrence. The range extends from a specified index for a specified number of elements. More... | |
static int | LastIndexOf (Array array, object value) |
Searches for the specified object and returns the index of the last occurrence within the entire one-dimensional T:System.Array. More... | |
static int | LastIndexOf (Array array, object value, int startIndex) |
Searches for the specified object and returns the index of the last occurrence within the range of elements in the one-dimensional T:System.Array that extends from the first element to the specified index. More... | |
static int | LastIndexOf (Array array, object value, int startIndex, int count) |
Searches for the specified object and returns the index of the last occurrence within the range of elements in the one-dimensional T:System.Array that contains the specified number of elements and ends at the specified index. More... | |
static int | LastIndexOf< T > (T[] array, T value) |
Searches for the specified object and returns the index of the last occurrence within the entire T:System.Array. More... | |
static int | LastIndexOf< T > (T[] array, T value, int startIndex) |
Searches for the specified object and returns the index of the last occurrence within the range of elements in the T:System.Array that extends from the first element to the specified index. More... | |
static int | LastIndexOf< T > (T[] array, T value, int startIndex, int count) |
Searches for the specified object and returns the index of the last occurrence within the range of elements in the T:System.Array that contains the specified number of elements and ends at the specified index. More... | |
static void | Reverse (Array array) |
Reverses the sequence of the elements in the entire one-dimensional T:System.Array. More... | |
static void | Reverse (Array array, int index, int length) |
Reverses the sequence of the elements in a range of elements in the one-dimensional T:System.Array. More... | |
static void | Sort (Array array) |
Sorts the elements in an entire one-dimensional T:System.Array using the T:System.IComparable implementation of each element of the T:System.Array. More... | |
static void | Sort (Array keys, Array items) |
Sorts a pair of one-dimensional T:System.Array objects (one contains the keys and the other contains the corresponding items) based on the keys in the first T:System.Array using the T:System.IComparable implementation of each key. More... | |
static void | Sort (Array array, int index, int length) |
Sorts the elements in a range of elements in a one-dimensional T:System.Array using the T:System.IComparable implementation of each element of the T:System.Array. More... | |
static void | Sort (Array keys, Array items, int index, int length) |
Sorts a range of elements in a pair of one-dimensional T:System.Array objects (one contains the keys and the other contains the corresponding items) based on the keys in the first T:System.Array using the T:System.IComparable implementation of each key. More... | |
static void | Sort (Array array, IComparer comparer) |
Sorts the elements in a one-dimensional T:System.Array using the specified T:System.Collections.IComparer. More... | |
static void | Sort (Array keys, Array items, IComparer comparer) |
Sorts a pair of one-dimensional T:System.Array objects (one contains the keys and the other contains the corresponding items) based on the keys in the first T:System.Array using the specified T:System.Collections.IComparer. More... | |
static void | Sort (Array array, int index, int length, IComparer comparer) |
Sorts the elements in a range of elements in a one-dimensional T:System.Array using the specified T:System.Collections.IComparer. More... | |
static void | Sort (Array keys, Array items, int index, int length, IComparer comparer) |
Sorts a range of elements in a pair of one-dimensional T:System.Array objects (one contains the keys and the other contains the corresponding items) based on the keys in the first T:System.Array using the specified T:System.Collections.IComparer. More... | |
static void | Sort< T > (T[] array) |
Sorts the elements in an entire T:System.Array using the T:System.IComparable`1 generic interface implementation of each element of the T:System.Array. More... | |
static void | Sort< TKey, TValue > (TKey[] keys, TValue[] items) |
Sorts a pair of T:System.Array objects (one contains the keys and the other contains the corresponding items) based on the keys in the first T:System.Array using the T:System.IComparable`1 generic interface implementation of each key. More... | |
static void | Sort< T > (T[] array, int index, int length) |
Sorts the elements in a range of elements in an T:System.Array using the T:System.IComparable`1 generic interface implementation of each element of the T:System.Array. More... | |
static void | Sort< TKey, TValue > (TKey[] keys, TValue[] items, int index, int length) |
Sorts a range of elements in a pair of T:System.Array objects (one contains the keys and the other contains the corresponding items) based on the keys in the first T:System.Array using the T:System.IComparable`1 generic interface implementation of each key. More... | |
static void | Sort< T > (T[] array, IComparer< T > comparer) |
Sorts the elements in an T:System.Array using the specified T:System.Collections.Generic.IComparer`1 generic interface. More... | |
static void | Sort< TKey, TValue > (TKey[] keys, TValue[] items, IComparer< TKey > comparer) |
Sorts a pair of T:System.Array objects (one contains the keys and the other contains the corresponding items) based on the keys in the first T:System.Array using the specified T:System.Collections.Generic.IComparer`1 generic interface. More... | |
static void | Sort< T > (T[] array, int index, int length, IComparer< T > comparer) |
Sorts the elements in a range of elements in an T:System.Array using the specified T:System.Collections.Generic.IComparer`1 generic interface. More... | |
static void | Sort< TKey, TValue > (TKey[] keys, TValue[] items, int index, int length, IComparer< TKey > comparer) |
Sorts a range of elements in a pair of T:System.Array objects (one contains the keys and the other contains the corresponding items) based on the keys in the first T:System.Array using the specified T:System.Collections.Generic.IComparer`1 generic interface. More... | |
static void | Sort< T > (T[] array, Comparison< T > comparison) |
Sorts the elements in an T:System.Array using the specified T:System.Comparison`1. More... | |
static bool | TrueForAll< T > (T[] array, Predicate< T > match) |
Determines whether every element in the array matches the conditions defined by the specified predicate. More... | |
Public Attributes | |
object | SyncRoot => this |
Gets an object that can be used to synchronize access to the T:System.Array. More... | |
bool | IsReadOnly => false |
Gets a value indicating whether the T:System.Array is read-only. More... | |
bool | IsFixedSize => true |
Gets a value indicating whether the T:System.Array has a fixed size. More... | |
bool | IsSynchronized => false |
Gets a value indicating whether access to the T:System.Array is synchronized (thread safe). More... | |
Properties | |
int | Length [get] |
Gets the total number of elements in all the dimensions of the T:System.Array. More... | |
long | LongLength [get] |
Gets a 64-bit integer that represents the total number of elements in all the dimensions of the T:System.Array. More... | |
int | Rank [get] |
Gets the rank (number of dimensions) of the T:System.Array. For example, a one-dimensional array returns 1, a two-dimensional array returns 2, and so on. More... | |
![]() | |
object | this[int index] [get, set] |
Gets or sets the element at the specified index. More... | |
bool | IsReadOnly [get] |
Gets a value indicating whether the T:System.Collections.IList is read-only. More... | |
bool | IsFixedSize [get] |
Gets a value indicating whether the T:System.Collections.IList has a fixed size. More... | |
![]() | |
int | Count [get] |
Gets the number of elements contained in the T:System.Collections.ICollection. More... | |
object | SyncRoot [get] |
Gets an object that can be used to synchronize access to the T:System.Collections.ICollection. More... | |
bool | IsSynchronized [get] |
Gets a value indicating whether access to the T:System.Collections.ICollection is synchronized (thread safe). More... | |
Provides methods for creating, manipulating, searching, and sorting arrays, thereby serving as the base class for all arrays in the common language runtime.To browse the .NET Framework source code for this type, see the Reference Source.
|
static |
Returns a read-only wrapper for the specified array.
array | The one-dimensional, zero-based array to wrap in a read-only T:System.Collections.ObjectModel.ReadOnlyCollection`1 wrapper. |
T | The type of the elements of the array. |
T:System.ArgumentNullException | array is null . |
|
static |
Searches an entire one-dimensional sorted array for a specific element, using the T:System.IComparable interface implemented by each element of the array and by the specified object.
array | The sorted one-dimensional T:System.Array to search. |
value | The object to search for. |
T:System.ArgumentNullException | array is null . |
T:System.RankException | array is multidimensional. |
T:System.ArgumentException | value is of a type that is not compatible with the elements of array . |
T:System.InvalidOperationException | value does not implement the T:System.IComparable interface, and the search encounters an element that does not implement the T:System.IComparable interface. |
|
static |
Searches a range of elements in a one-dimensional sorted array for a value, using the T:System.IComparable interface implemented by each element of the array and by the specified value.
array | The sorted one-dimensional T:System.Array to search. |
index | The starting index of the range to search. |
length | The length of the range to search. |
value | The object to search for. |
T:System.ArgumentNullException | array is null . |
T:System.RankException | array is multidimensional. |
T:System.ArgumentOutOfRangeException | index is less than the lower bound of array .-or- length is less than zero. |
T:System.ArgumentException | index and length do not specify a valid range in array .-or- value is of a type that is not compatible with the elements of array . |
T:System.InvalidOperationException | value does not implement the T:System.IComparable interface, and the search encounters an element that does not implement the T:System.IComparable interface. |
Searches an entire one-dimensional sorted array for a value using the specified T:System.Collections.IComparer interface.
array | The sorted one-dimensional T:System.Array to search. |
value | The object to search for. |
comparer | The T:System.Collections.IComparer implementation to use when comparing elements.-or- null to use the T:System.IComparable implementation of each element. |
T:System.ArgumentNullException | array is null . |
T:System.RankException | array is multidimensional. |
T:System.ArgumentException | comparer is null , and value is of a type that is not compatible with the elements of array . |
T:System.InvalidOperationException | comparer is null , value does not implement the T:System.IComparable interface, and the search encounters an element that does not implement the T:System.IComparable interface. |
|
static |
Searches a range of elements in a one-dimensional sorted array for a value, using the specified T:System.Collections.IComparer interface.
array | The sorted one-dimensional T:System.Array to search. |
index | The starting index of the range to search. |
length | The length of the range to search. |
value | The object to search for. |
comparer | The T:System.Collections.IComparer implementation to use when comparing elements.-or- null to use the T:System.IComparable implementation of each element. |
T:System.ArgumentNullException | array is null . |
T:System.RankException | array is multidimensional. |
T:System.ArgumentOutOfRangeException | index is less than the lower bound of array .-or- length is less than zero. |
T:System.ArgumentException | index and length do not specify a valid range in array .-or- comparer is null , and value is of a type that is not compatible with the elements of array . |
T:System.InvalidOperationException | comparer is null , value does not implement the T:System.IComparable interface, and the search encounters an element that does not implement the T:System.IComparable interface. |
|
static |
Searches an entire one-dimensional sorted array for a specific element, using the T:System.IComparable`1 generic interface implemented by each element of the T:System.Array and by the specified object.
array | The sorted one-dimensional, zero-based T:System.Array to search. |
value | The object to search for. |
T | The type of the elements of the array. |
T:System.ArgumentNullException | array is null . |
T:System.InvalidOperationException | T does not implement the T:System.IComparable`1 generic interface. |
Searches an entire one-dimensional sorted array for a value using the specified T:System.Collections.Generic.IComparer`1 generic interface.
array | The sorted one-dimensional, zero-based T:System.Array to search. |
value | The object to search for. |
comparer | The T:System.Collections.Generic.IComparer`1 implementation to use when comparing elements.-or- null to use the T:System.IComparable`1 implementation of each element. |
T | The type of the elements of the array. |
T:System.ArgumentNullException | array is null . |
T:System.ArgumentException | comparer is null , and value is of a type that is not compatible with the elements of array . |
T:System.InvalidOperationException | comparer is null , and T does not implement the T:System.IComparable`1 generic interface |
|
static |
Searches a range of elements in a one-dimensional sorted array for a value, using the T:System.IComparable`1 generic interface implemented by each element of the T:System.Array and by the specified value.
array | The sorted one-dimensional, zero-based T:System.Array to search. |
index | The starting index of the range to search. |
length | The length of the range to search. |
value | The object to search for. |
T | The type of the elements of the array. |
T:System.ArgumentNullException | array is null . |
T:System.ArgumentOutOfRangeException | index is less than the lower bound of array .-or- length is less than zero. |
T:System.ArgumentException | index and length do not specify a valid range in array .-or- value is of a type that is not compatible with the elements of array . |
T:System.InvalidOperationException | T does not implement the T:System.IComparable`1 generic interface. |
|
static |
Searches a range of elements in a one-dimensional sorted array for a value, using the specified T:System.Collections.Generic.IComparer`1 generic interface.
array | The sorted one-dimensional, zero-based T:System.Array to search. |
index | The starting index of the range to search. |
length | The length of the range to search. |
value | The object to search for. |
comparer | The T:System.Collections.Generic.IComparer`1 implementation to use when comparing elements.-or- null to use the T:System.IComparable`1 implementation of each element. |
T | The type of the elements of the array. |
T:System.ArgumentNullException | array is null . |
T:System.ArgumentOutOfRangeException | index is less than the lower bound of array .-or- length is less than zero. |
T:System.ArgumentException | index and length do not specify a valid range in array .-or- comparer is null , and value is of a type that is not compatible with the elements of array . |
T:System.InvalidOperationException | comparer is null , and T does not implement the T:System.IComparable`1 generic interface. |
static void System.Array.Clear | ( | Array | array, |
int | index, | ||
int | length | ||
) |
Sets a range of elements in an array to the default value of each element type.
array | The array whose elements need to be cleared. |
index | The starting index of the range of elements to clear. |
length | The number of elements to clear. |
T:System.ArgumentNullException | array is null . |
T:System.IndexOutOfRangeException | index is less than the lower bound of array .-or- length is less than zero.-or-The sum of index and length is greater than the size of array . |
object System.Array.Clone | ( | ) |
Creates a shallow copy of the T:System.Array.
Implements System.ICloneable.
|
static |
Copies a range of elements from an T:System.Array starting at the specified source index and pastes them to another T:System.Array starting at the specified destination index. Guarantees that all changes are undone if the copy does not succeed completely.
sourceArray | The T:System.Array that contains the data to copy. |
sourceIndex | A 32-bit integer that represents the index in the sourceArray at which copying begins. |
destinationArray | The T:System.Array that receives the data. |
destinationIndex | A 32-bit integer that represents the index in the destinationArray at which storing begins. |
length | A 32-bit integer that represents the number of elements to copy. |
T:System.ArgumentNullException | sourceArray is null .-or- destinationArray is null . |
T:System.RankException | sourceArray and destinationArray have different ranks. |
T:System.ArrayTypeMismatchException | The sourceArray type is neither the same as nor derived from the destinationArray type. |
T:System.InvalidCastException | At least one element in sourceArray cannot be cast to the type of destinationArray . |
T:System.ArgumentOutOfRangeException | sourceIndex is less than the lower bound of the first dimension of sourceArray .-or- destinationIndex is less than the lower bound of the first dimension of destinationArray .-or- length is less than zero. |
T:System.ArgumentException | length is greater than the number of elements from sourceIndex to the end of sourceArray .-or- length is greater than the number of elements from destinationIndex to the end of destinationArray . |
|
static |
Converts an array of one type to an array of another type.
array | The one-dimensional, zero-based T:System.Array to convert to a target type. |
converter | A T:System.Converter`2 that converts each element from one type to another type. |
TInput | The type of the elements of the source array. |
TOutput | The type of the elements of the target array. |
T:System.ArgumentNullException | array is null .-or- converter is null . |
Copies a range of elements from an T:System.Array starting at the first element and pastes them into another T:System.Array starting at the first element. The length is specified as a 32-bit integer.
sourceArray | The T:System.Array that contains the data to copy. |
destinationArray | The T:System.Array that receives the data. |
length | A 32-bit integer that represents the number of elements to copy. |
T:System.ArgumentNullException | sourceArray is null .-or- destinationArray is null . |
T:System.RankException | sourceArray and destinationArray have different ranks. |
T:System.ArrayTypeMismatchException | sourceArray and destinationArray are of incompatible types. |
T:System.InvalidCastException | At least one element in sourceArray cannot be cast to the type of destinationArray . |
T:System.ArgumentOutOfRangeException | length is less than zero. |
T:System.ArgumentException | length is greater than the number of elements in sourceArray .-or- length is greater than the number of elements in destinationArray . |
|
static |
Copies a range of elements from an T:System.Array starting at the specified source index and pastes them to another T:System.Array starting at the specified destination index. The length and the indexes are specified as 32-bit integers.
sourceArray | The T:System.Array that contains the data to copy. |
sourceIndex | A 32-bit integer that represents the index in the sourceArray at which copying begins. |
destinationArray | The T:System.Array that receives the data. |
destinationIndex | A 32-bit integer that represents the index in the destinationArray at which storing begins. |
length | A 32-bit integer that represents the number of elements to copy. |
T:System.ArgumentNullException | sourceArray is null .-or- destinationArray is null . |
T:System.RankException | sourceArray and destinationArray have different ranks. |
T:System.ArrayTypeMismatchException | sourceArray and destinationArray are of incompatible types. |
T:System.InvalidCastException | At least one element in sourceArray cannot be cast to the type of destinationArray . |
T:System.ArgumentOutOfRangeException | sourceIndex is less than the lower bound of the first dimension of sourceArray .-or- destinationIndex is less than the lower bound of the first dimension of destinationArray .-or- length is less than zero. |
T:System.ArgumentException | length is greater than the number of elements from sourceIndex to the end of sourceArray .-or- length is greater than the number of elements from destinationIndex to the end of destinationArray . |
Copies a range of elements from an T:System.Array starting at the first element and pastes them into another T:System.Array starting at the first element. The length is specified as a 64-bit integer.
sourceArray | The T:System.Array that contains the data to copy. |
destinationArray | The T:System.Array that receives the data. |
length | A 64-bit integer that represents the number of elements to copy. The integer must be between zero and F:System.Int32.MaxValue, inclusive. |
T:System.ArgumentNullException | sourceArray is null .-or- destinationArray is null . |
T:System.RankException | sourceArray and destinationArray have different ranks. |
T:System.ArrayTypeMismatchException | sourceArray and destinationArray are of incompatible types. |
T:System.InvalidCastException | At least one element in sourceArray cannot be cast to the type of destinationArray . |
T:System.ArgumentOutOfRangeException | length is less than 0 or greater than F:System.Int32.MaxValue. |
T:System.ArgumentException | length is greater than the number of elements in sourceArray .-or- length is greater than the number of elements in destinationArray . |
|
static |
Copies a range of elements from an T:System.Array starting at the specified source index and pastes them to another T:System.Array starting at the specified destination index. The length and the indexes are specified as 64-bit integers.
sourceArray | The T:System.Array that contains the data to copy. |
sourceIndex | A 64-bit integer that represents the index in the sourceArray at which copying begins. |
destinationArray | The T:System.Array that receives the data. |
destinationIndex | A 64-bit integer that represents the index in the destinationArray at which storing begins. |
length | A 64-bit integer that represents the number of elements to copy. The integer must be between zero and F:System.Int32.MaxValue, inclusive. |
T:System.ArgumentNullException | sourceArray is null .-or- destinationArray is null . |
T:System.RankException | sourceArray and destinationArray have different ranks. |
T:System.ArrayTypeMismatchException | sourceArray and destinationArray are of incompatible types. |
T:System.InvalidCastException | At least one element in sourceArray cannot be cast to the type of destinationArray . |
T:System.ArgumentOutOfRangeException | sourceIndex is outside the range of valid indexes for the sourceArray .-or- destinationIndex is outside the range of valid indexes for the destinationArray .-or- length is less than 0 or greater than F:System.Int32.MaxValue. |
T:System.ArgumentException | length is greater than the number of elements from sourceIndex to the end of sourceArray .-or- length is greater than the number of elements from destinationIndex to the end of destinationArray . |
void System.Array.CopyTo | ( | Array | array, |
int | index | ||
) |
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.
array | The one-dimensional array that is the destination of the elements copied from the current array. |
index | A 32-bit integer that represents the index in array at which copying begins. |
T:System.ArgumentNullException | array is null . |
T:System.ArgumentOutOfRangeException | index is less than the lower bound of array . |
T:System.ArgumentException | array is multidimensional.-or-The number of elements in the source array is greater than the available number of elements from index to the end of the destination array . |
T:System.ArrayTypeMismatchException | The type of the source T:System.Array cannot be cast automatically to the type of the destination array . |
T:System.RankException | The source array is multidimensional. |
T:System.InvalidCastException | At least one element in the source T:System.Array cannot be cast to the type of destination array . |
Implements System.Collections.ICollection.
void System.Array.CopyTo | ( | Array | array, |
long | index | ||
) |
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.
array | The one-dimensional array that is the destination of the elements copied from the current array. |
index | A 64-bit integer that represents the index in array at which copying begins. |
T:System.ArgumentNullException | array is null . |
T:System.ArgumentOutOfRangeException | index is outside the range of valid indexes for array . |
T:System.ArgumentException | array is multidimensional.-or-The number of elements in the source array is greater than the available number of elements from index to the end of the destination array . |
T:System.ArrayTypeMismatchException | The type of the source T:System.Array cannot be cast automatically to the type of the destination array . |
T:System.RankException | The source T:System.Array is multidimensional. |
T:System.InvalidCastException | At least one element in the source T:System.Array cannot be cast to the type of destination array . |
Creates a one-dimensional T:System.Array of the specified T:System.Type and length, with zero-based indexing.
elementType | The T:System.Type of the T:System.Array to create. |
length | The size of the T:System.Array to create. |
T:System.ArgumentNullException | elementType is null . |
T:System.ArgumentException | elementType is not a valid T:System.Type. |
T:System.NotSupportedException | elementType is not supported. For example, T:System.Void is not supported.-or- |
elementType is an open generic type.
T:System.ArgumentOutOfRangeException | length is less than zero. |
|
static |
Creates a two-dimensional T:System.Array of the specified T:System.Type and dimension lengths, with zero-based indexing.
elementType | The T:System.Type of the T:System.Array to create. |
length1 | The size of the first dimension of the T:System.Array to create. |
length2 | The size of the second dimension of the T:System.Array to create. |
T:System.ArgumentNullException | elementType is null . |
T:System.ArgumentException | elementType is not a valid T:System.Type. |
T:System.NotSupportedException | elementType is not supported. For example, T:System.Void is not supported. -or- |
elementType is an open generic type.
T:System.ArgumentOutOfRangeException | length1 is less than zero.-or- length2 is less than zero. |
|
static |
Creates a three-dimensional T:System.Array of the specified T:System.Type and dimension lengths, with zero-based indexing.
elementType | The T:System.Type of the T:System.Array to create. |
length1 | The size of the first dimension of the T:System.Array to create. |
length2 | The size of the second dimension of the T:System.Array to create. |
length3 | The size of the third dimension of the T:System.Array to create. |
T:System.ArgumentNullException | elementType is null . |
T:System.ArgumentException | elementType is not a valid T:System.Type. |
T:System.NotSupportedException | elementType is not supported. For example, T:System.Void is not supported. -or- |
elementType is an open generic type.
T:System.ArgumentOutOfRangeException | length1 is less than zero.-or- length2 is less than zero.-or- length3 is less than zero. |
Creates a multidimensional T:System.Array of the specified T:System.Type and dimension lengths, with zero-based indexing. The dimension lengths are specified in an array of 32-bit integers.
elementType | The T:System.Type of the T:System.Array to create. |
lengths | An array of 32-bit integers that represent the size of each dimension of the T:System.Array to create. |
T:System.ArgumentNullException | elementType is null .-or- lengths is null . |
T:System.ArgumentException | elementType is not a valid T:System.Type.-or-The lengths array contains less than one element. |
T:System.NotSupportedException | elementType is not supported. For example, T:System.Void is not supported. -or- |
elementType is an open generic type.
T:System.ArgumentOutOfRangeException | Any value in lengths is less than zero. |
Creates a multidimensional T:System.Array of the specified T:System.Type and dimension lengths, with zero-based indexing. The dimension lengths are specified in an array of 64-bit integers.
elementType | The T:System.Type of the T:System.Array to create. |
lengths | An array of 64-bit integers that represent the size of each dimension of the T:System.Array to create. Each integer in the array must be between zero and F:System.Int32.MaxValue, inclusive. |
T:System.ArgumentNullException | elementType is null .-or- lengths is null . |
T:System.ArgumentException | elementType is not a valid T:System.Type.-or-The lengths array contains less than one element. |
T:System.NotSupportedException | elementType is not supported. For example, T:System.Void is not supported. -or- |
elementType is an open generic type.
T:System.ArgumentOutOfRangeException | Any value in lengths is less than zero or greater than F:System.Int32.MaxValue. |
|
static |
Creates a multidimensional T:System.Array of the specified T:System.Type and dimension lengths, with the specified lower bounds.
elementType | The T:System.Type of the T:System.Array to create. |
lengths | A one-dimensional array that contains the size of each dimension of the T:System.Array to create. |
lowerBounds | A one-dimensional array that contains the lower bound (starting index) of each dimension of the T:System.Array to create. |
T:System.ArgumentNullException | elementType is null .-or- lengths is null .-or- lowerBounds is null . |
T:System.ArgumentException | elementType is not a valid T:System.Type.-or-The lengths array contains less than one element.-or-The lengths and lowerBounds arrays do not contain the same number of elements. |
T:System.NotSupportedException | elementType is not supported. For example, T:System.Void is not supported. -or- |
elementType is an open generic type.
T:System.ArgumentOutOfRangeException | Any value in lengths is less than zero.-or-Any value in lowerBounds is very large, such that the sum of a dimension's lower bound and length is greater than F:System.Int32.MaxValue. |
Determines whether the specified array contains elements that match the conditions defined by the specified predicate.
array | The one-dimensional, zero-based T:System.Array to search. |
match | The T:System.Predicate`1 that defines the conditions of the elements to search for. |
T | The type of the elements of the array. |
true
if array contains one or more elements that match the conditions defined by the specified predicate; otherwise, false
.T:System.ArgumentNullException | array is null .-or- match is null . |
Searches for an element that matches the conditions defined by the specified predicate, and returns the first occurrence within the entire T:System.Array.
array | The one-dimensional, zero-based array to search. |
match | The predicate that defines the conditions of the element to search for. |
T | The type of the elements of the array. |
T:System.ArgumentNullException | array is null .-or- match is null . |
Retrieves all the elements that match the conditions defined by the specified predicate.
array | The one-dimensional, zero-based T:System.Array to search. |
match | The T:System.Predicate`1 that defines the conditions of the elements to search for. |
T | The type of the elements of the array. |
T:System.ArgumentNullException | array is null .-or- match is null . |
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 T:System.Array.
array | The one-dimensional, zero-based T:System.Array to search. |
match | The T:System.Predicate`1 that defines the conditions of the element to search for. |
T | The type of the elements of the array. |
T:System.ArgumentNullException | array is null .-or- match is null . |
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 T:System.Array that extends from the specified index to the last element.
array | The one-dimensional, zero-based T:System.Array to search. |
startIndex | The zero-based starting index of the search. |
match | The T:System.Predicate`1 that defines the conditions of the element to search for. |
T | The type of the elements of the array. |
T:System.ArgumentNullException | array is null .-or- match is null . |
T:System.ArgumentOutOfRangeException | startIndex is outside the range of valid indexes for array . |
|
static |
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 T:System.Array that starts at the specified index and contains the specified number of elements.
array | The one-dimensional, zero-based T:System.Array to search. |
startIndex | The zero-based starting index of the search. |
count | The number of elements in the section to search. |
match | The T:System.Predicate`1 that defines the conditions of the element to search for. |
T | The type of the elements of the array. |
T:System.ArgumentNullException | array is null .-or- match is null . |
T:System.ArgumentOutOfRangeException | startIndex is outside the range of valid indexes for array .-or- count is less than zero.-or- startIndex and count do not specify a valid section in array . |
Searches for an element that matches the conditions defined by the specified predicate, and returns the last occurrence within the entire T:System.Array.
array | The one-dimensional, zero-based T:System.Array to search. |
match | The T:System.Predicate`1 that defines the conditions of the element to search for. |
T | The type of the elements of the array. |
T:System.ArgumentNullException | array is null .-or- match is null . |
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 T:System.Array.
array | The one-dimensional, zero-based T:System.Array to search. |
match | The T:System.Predicate`1 that defines the conditions of the element to search for. |
T | The type of the elements of the array. |
T:System.ArgumentNullException | array is null .-or- match is null . |
|
static |
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 T:System.Array that extends from the first element to the specified index.
array | The one-dimensional, zero-based T:System.Array to search. |
startIndex | The zero-based starting index of the backward search. |
match | The T:System.Predicate`1 that defines the conditions of the element to search for. |
T | The type of the elements of the array. |
T:System.ArgumentNullException | array is null .-or- match is null . |
T:System.ArgumentOutOfRangeException | startIndex is outside the range of valid indexes for array . |
|
static |
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 T:System.Array that contains the specified number of elements and ends at the specified index.
array | The one-dimensional, zero-based T:System.Array to search. |
startIndex | The zero-based starting index of the backward search. |
count | The number of elements in the section to search. |
match | The T:System.Predicate`1 that defines the conditions of the element to search for. |
T | The type of the elements of the array. |
T:System.ArgumentNullException | array is null .-or- match is null . |
T:System.ArgumentOutOfRangeException | startIndex is outside the range of valid indexes for array .-or- count is less than zero.-or- startIndex and count do not specify a valid section in array . |
Performs the specified action on each element of the specified array.
array | The one-dimensional, zero-based T:System.Array on whose elements the action is to be performed. |
action | The T:System.Action`1 to perform on each element of array . |
T | The type of the elements of the array. |
T:System.ArgumentNullException | array is null .-or- action is null . |
IEnumerator System.Array.GetEnumerator | ( | ) |
Returns an T:System.Collections.IEnumerator for the T:System.Array.
Implements System.Collections.IEnumerable.
int System.Array.GetLength | ( | int | dimension | ) |
Gets a 32-bit integer that represents the number of elements in the specified dimension of the T:System.Array.
dimension | A zero-based dimension of the T:System.Array whose length needs to be determined. |
T:System.IndexOutOfRangeException | dimension is less than zero.-or- dimension is equal to or greater than P:System.Array.Rank. |
long System.Array.GetLongLength | ( | int | dimension | ) |
Gets a 64-bit integer that represents the number of elements in the specified dimension of the T:System.Array.
dimension | A zero-based dimension of the T:System.Array whose length needs to be determined. |
T:System.IndexOutOfRangeException | dimension is less than zero.-or- dimension is equal to or greater than P:System.Array.Rank. |
int System.Array.GetLowerBound | ( | int | dimension | ) |
Gets the index of the first element of the specified dimension in the array.
dimension | A zero-based dimension of the array whose starting index needs to be determined. |
T:System.IndexOutOfRangeException | dimension is less than zero.-or- dimension is equal to or greater than P:System.Array.Rank. |
int System.Array.GetUpperBound | ( | int | dimension | ) |
Gets the index of the last element of the specified dimension in the array.
dimension | A zero-based dimension of the array whose upper bound needs to be determined. |
T:System.IndexOutOfRangeException | dimension is less than zero.-or- dimension is equal to or greater than P:System.Array.Rank. |
unsafe object System.Array.GetValue | ( | params int [] | indices | ) |
Gets the value at the specified position in the multidimensional T:System.Array. The indexes are specified as an array of 32-bit integers.
indices | A one-dimensional array of 32-bit integers that represent the indexes specifying the position of the T:System.Array element to get. |
T:System.ArgumentNullException | indices is null . |
T:System.ArgumentException | The number of dimensions in the current T:System.Array is not equal to the number of elements in indices . |
T:System.IndexOutOfRangeException | Any element in indices is outside the range of valid indexes for the corresponding dimension of the current T:System.Array. |
unsafe object System.Array.GetValue | ( | int | index | ) |
Gets the value at the specified position in the one-dimensional T:System.Array. The index is specified as a 32-bit integer.
index | A 32-bit integer that represents the position of the T:System.Array element to get. |
T:System.ArgumentException | The current T:System.Array does not have exactly one dimension. |
T:System.IndexOutOfRangeException | index is outside the range of valid indexes for the current T:System.Array. |
unsafe object System.Array.GetValue | ( | int | index1, |
int | index2 | ||
) |
Gets the value at the specified position in the two-dimensional T:System.Array. The indexes are specified as 32-bit integers.
index1 | A 32-bit integer that represents the first-dimension index of the T:System.Array element to get. |
index2 | A 32-bit integer that represents the second-dimension index of the T:System.Array element to get. |
T:System.ArgumentException | The current T:System.Array does not have exactly two dimensions. |
T:System.IndexOutOfRangeException | Either index1 or index2 is outside the range of valid indexes for the corresponding dimension of the current T:System.Array. |
unsafe object System.Array.GetValue | ( | int | index1, |
int | index2, | ||
int | index3 | ||
) |
Gets the value at the specified position in the three-dimensional T:System.Array. The indexes are specified as 32-bit integers.
index1 | A 32-bit integer that represents the first-dimension index of the T:System.Array element to get. |
index2 | A 32-bit integer that represents the second-dimension index of the T:System.Array element to get. |
index3 | A 32-bit integer that represents the third-dimension index of the T:System.Array element to get. |
T:System.ArgumentException | The current T:System.Array does not have exactly three dimensions. |
T:System.IndexOutOfRangeException | index1 or index2 or index3 is outside the range of valid indexes for the corresponding dimension of the current T:System.Array. |
object System.Array.GetValue | ( | long | index | ) |
Gets the value at the specified position in the one-dimensional T:System.Array. The index is specified as a 64-bit integer.
index | A 64-bit integer that represents the position of the T:System.Array element to get. |
T:System.ArgumentException | The current T:System.Array does not have exactly one dimension. |
T:System.ArgumentOutOfRangeException | index is outside the range of valid indexes for the current T:System.Array. |
object System.Array.GetValue | ( | long | index1, |
long | index2 | ||
) |
Gets the value at the specified position in the two-dimensional T:System.Array. The indexes are specified as 64-bit integers.
index1 | A 64-bit integer that represents the first-dimension index of the T:System.Array element to get. |
index2 | A 64-bit integer that represents the second-dimension index of the T:System.Array element to get. |
T:System.ArgumentException | The current T:System.Array does not have exactly two dimensions. |
T:System.ArgumentOutOfRangeException | Either index1 or index2 is outside the range of valid indexes for the corresponding dimension of the current T:System.Array. |
object System.Array.GetValue | ( | long | index1, |
long | index2, | ||
long | index3 | ||
) |
Gets the value at the specified position in the three-dimensional T:System.Array. The indexes are specified as 64-bit integers.
index1 | A 64-bit integer that represents the first-dimension index of the T:System.Array element to get. |
index2 | A 64-bit integer that represents the second-dimension index of the T:System.Array element to get. |
index3 | A 64-bit integer that represents the third-dimension index of the T:System.Array element to get. |
T:System.ArgumentException | The current T:System.Array does not have exactly three dimensions. |
T:System.ArgumentOutOfRangeException | index1 or index2 or index3 is outside the range of valid indexes for the corresponding dimension of the current T:System.Array. |
object System.Array.GetValue | ( | params long [] | indices | ) |
Gets the value at the specified position in the multidimensional T:System.Array. The indexes are specified as an array of 64-bit integers.
indices | A one-dimensional array of 64-bit integers that represent the indexes specifying the position of the T:System.Array element to get. |
T:System.ArgumentNullException | indices is null . |
T:System.ArgumentException | The number of dimensions in the current T:System.Array is not equal to the number of elements in indices . |
T:System.ArgumentOutOfRangeException | Any element in indices is outside the range of valid indexes for the corresponding dimension of the current T:System.Array. |
|
static |
Searches for the specified object and returns the index of its first occurrence in a one-dimensional array.
array | The one-dimensional array to search. |
value | The object to locate in array . |
T:System.ArgumentNullException | array is null . |
T:System.RankException | array is multidimensional. |
|
static |
Searches for the specified object in a range of elements of a one-dimensional array, and returns the index of its first occurrence. The range extends from a specified index to the end of the array.
array | The one-dimensional array to search. |
value | The object to locate in array . |
startIndex | The starting index of the search. 0 (zero) is valid in an empty array. |
T:System.ArgumentNullException | array is null . |
T:System.ArgumentOutOfRangeException | startIndex is outside the range of valid indexes for array . |
T:System.RankException | array is multidimensional. |
|
static |
Searches for the specified object in a range of elements of a one-dimensional array, and returns the index of ifs first occurrence. The range extends from a specified index for a specified number of elements.
array | The one-dimensional array to search. |
value | The object to locate in array . |
startIndex | The starting index of the search. 0 (zero) is valid in an empty array. |
count | The number of elements to search. |
T:System.ArgumentNullException | array is null . |
T:System.ArgumentOutOfRangeException | startIndex is outside the range of valid indexes for array .-or- count is less than zero.-or- startIndex and count do not specify a valid section in array . |
T:System.RankException | array is multidimensional. |
Searches for the specified object and returns the index of its first occurrence in a one-dimensional array.
array | The one-dimensional, zero-based array to search. |
value | The object to locate in array . |
T | The type of the elements of the array. |
T:System.ArgumentNullException | array is null . |
Searches for the specified object in a range of elements of a one dimensional array, and returns the index of its first occurrence. The range extends from a specified index to the end of the array.
array | The one-dimensional, zero-based array to search. |
value | The object to locate in array . |
startIndex | The zero-based starting index of the search. 0 (zero) is valid in an empty array. |
T | The type of the elements of the array. |
T:System.ArgumentNullException | array is null . |
T:System.ArgumentOutOfRangeException | startIndex is outside the range of valid indexes for array . |
Searches for the specified object in a range of elements of a one-dimensional array, and returns the index of its first occurrence. The range extends from a specified index for a specified number of elements.
array | The one-dimensional, zero-based array to search. |
value | The object to locate in array . |
startIndex | The zero-based starting index of the search. 0 (zero) is valid in an empty array. |
count | The number of elements in the section to search. |
T | The type of the elements of the array. |
T:System.ArgumentNullException | array is null . |
T:System.ArgumentOutOfRangeException | startIndex is outside the range of valid indexes for array .-or- count is less than zero.-or- startIndex and count do not specify a valid section in array . |
void System.Array.Initialize | ( | ) |
Initializes every element of the value-type T:System.Array by calling the default constructor of the value type.
|
static |
Searches for the specified object and returns the index of the last occurrence within the entire one-dimensional T:System.Array.
array | The one-dimensional T:System.Array to search. |
value | The object to locate in array . |
T:System.ArgumentNullException | array is null . |
T:System.RankException | array is multidimensional. |
|
static |
Searches for the specified object and returns the index of the last occurrence within the range of elements in the one-dimensional T:System.Array that extends from the first element to the specified index.
array | The one-dimensional T:System.Array to search. |
value | The object to locate in array . |
startIndex | The starting index of the backward search. |
T:System.ArgumentNullException | array is null . |
T:System.ArgumentOutOfRangeException | startIndex is outside the range of valid indexes for array . |
T:System.RankException | array is multidimensional. |
|
static |
Searches for the specified object and returns the index of the last occurrence within the range of elements in the one-dimensional T:System.Array that contains the specified number of elements and ends at the specified index.
array | The one-dimensional T:System.Array to search. |
value | The object to locate in array . |
startIndex | The starting index of the backward search. |
count | The number of elements in the section to search. |
T:System.ArgumentNullException | array is null . |
T:System.ArgumentOutOfRangeException | startIndex is outside the range of valid indexes for array .-or- count is less than zero.-or- startIndex and count do not specify a valid section in array . |
T:System.RankException | array is multidimensional. |
|
static |
Searches for the specified object and returns the index of the last occurrence within the entire T:System.Array.
array | The one-dimensional, zero-based T:System.Array to search. |
value | The object to locate in array . |
T | The type of the elements of the array. |
T:System.ArgumentNullException | array is null . |
|
static |
Searches for the specified object and returns the index of the last occurrence within the range of elements in the T:System.Array that extends from the first element to the specified index.
array | The one-dimensional, zero-based T:System.Array to search. |
value | The object to locate in array . |
startIndex | The zero-based starting index of the backward search. |
T | The type of the elements of the array. |
T:System.ArgumentNullException | array is null . |
T:System.ArgumentOutOfRangeException | startIndex is outside the range of valid indexes for array . |
|
static |
Searches for the specified object and returns the index of the last occurrence within the range of elements in the T:System.Array that contains the specified number of elements and ends at the specified index.
array | The one-dimensional, zero-based T:System.Array to search. |
value | The object to locate in array . |
startIndex | The zero-based starting index of the backward search. |
count | The number of elements in the section to search. |
T | The type of the elements of the array. |
T:System.ArgumentNullException | array is null . |
T:System.ArgumentOutOfRangeException | startIndex is outside the range of valid indexes for array .-or- count is less than zero.-or- startIndex and count do not specify a valid section in array . |
Changes the number of elements of a one-dimensional array to the specified new size.
array | The one-dimensional, zero-based array to resize, or null to create a new array with the specified size. |
newSize | The size of the new array. |
T | The type of the elements of the array. |
T:System.ArgumentOutOfRangeException | newSize is less than zero. |
|
static |
|
static |
Reverses the sequence of the elements in a range of elements in the one-dimensional T:System.Array.
array | The one-dimensional T:System.Array to reverse. |
index | The starting index of the section to reverse. |
length | The number of elements in the section to reverse. |
T:System.ArgumentNullException | array is null . |
T:System.RankException | array is multidimensional. |
T:System.ArgumentOutOfRangeException | index is less than the lower bound of array .-or- length is less than zero. |
T:System.ArgumentException | index and length do not specify a valid range in array . |
unsafe void System.Array.SetValue | ( | object | value, |
int | index | ||
) |
Sets a value to the element at the specified position in the one-dimensional T:System.Array. The index is specified as a 32-bit integer.
value | The new value for the specified element. |
index | A 32-bit integer that represents the position of the T:System.Array element to set. |
T:System.ArgumentException | The current T:System.Array does not have exactly one dimension. |
T:System.InvalidCastException | value cannot be cast to the element type of the current T:System.Array. |
T:System.IndexOutOfRangeException | index is outside the range of valid indexes for the current T:System.Array. |
unsafe void System.Array.SetValue | ( | object | value, |
int | index1, | ||
int | index2 | ||
) |
Sets a value to the element at the specified position in the two-dimensional T:System.Array. The indexes are specified as 32-bit integers.
value | The new value for the specified element. |
index1 | A 32-bit integer that represents the first-dimension index of the T:System.Array element to set. |
index2 | A 32-bit integer that represents the second-dimension index of the T:System.Array element to set. |
T:System.ArgumentException | The current T:System.Array does not have exactly two dimensions. |
T:System.InvalidCastException | value cannot be cast to the element type of the current T:System.Array. |
T:System.IndexOutOfRangeException | Either index1 or index2 is outside the range of valid indexes for the corresponding dimension of the current T:System.Array. |
unsafe void System.Array.SetValue | ( | object | value, |
int | index1, | ||
int | index2, | ||
int | index3 | ||
) |
Sets a value to the element at the specified position in the three-dimensional T:System.Array. The indexes are specified as 32-bit integers.
value | The new value for the specified element. |
index1 | A 32-bit integer that represents the first-dimension index of the T:System.Array element to set. |
index2 | A 32-bit integer that represents the second-dimension index of the T:System.Array element to set. |
index3 | A 32-bit integer that represents the third-dimension index of the T:System.Array element to set. |
T:System.ArgumentException | The current T:System.Array does not have exactly three dimensions. |
T:System.InvalidCastException | value cannot be cast to the element type of the current T:System.Array. |
T:System.IndexOutOfRangeException | index1 or index2 or index3 is outside the range of valid indexes for the corresponding dimension of the current T:System.Array. |
unsafe void System.Array.SetValue | ( | object | value, |
params int [] | indices | ||
) |
Sets a value to the element at the specified position in the multidimensional T:System.Array. The indexes are specified as an array of 32-bit integers.
value | The new value for the specified element. |
indices | A one-dimensional array of 32-bit integers that represent the indexes specifying the position of the element to set. |
T:System.ArgumentNullException | indices is null . |
T:System.ArgumentException | The number of dimensions in the current T:System.Array is not equal to the number of elements in indices . |
T:System.InvalidCastException | value cannot be cast to the element type of the current T:System.Array. |
T:System.IndexOutOfRangeException | Any element in indices is outside the range of valid indexes for the corresponding dimension of the current T:System.Array. |
void System.Array.SetValue | ( | object | value, |
long | index | ||
) |
Sets a value to the element at the specified position in the one-dimensional T:System.Array. The index is specified as a 64-bit integer.
value | The new value for the specified element. |
index | A 64-bit integer that represents the position of the T:System.Array element to set. |
T:System.ArgumentException | The current T:System.Array does not have exactly one dimension. |
T:System.InvalidCastException | value cannot be cast to the element type of the current T:System.Array. |
T:System.ArgumentOutOfRangeException | index is outside the range of valid indexes for the current T:System.Array. |
void System.Array.SetValue | ( | object | value, |
long | index1, | ||
long | index2 | ||
) |
Sets a value to the element at the specified position in the two-dimensional T:System.Array. The indexes are specified as 64-bit integers.
value | The new value for the specified element. |
index1 | A 64-bit integer that represents the first-dimension index of the T:System.Array element to set. |
index2 | A 64-bit integer that represents the second-dimension index of the T:System.Array element to set. |
T:System.ArgumentException | The current T:System.Array does not have exactly two dimensions. |
T:System.InvalidCastException | value cannot be cast to the element type of the current T:System.Array. |
T:System.ArgumentOutOfRangeException | Either index1 or index2 is outside the range of valid indexes for the corresponding dimension of the current T:System.Array. |
void System.Array.SetValue | ( | object | value, |
long | index1, | ||
long | index2, | ||
long | index3 | ||
) |
Sets a value to the element at the specified position in the three-dimensional T:System.Array. The indexes are specified as 64-bit integers.
value | The new value for the specified element. |
index1 | A 64-bit integer that represents the first-dimension index of the T:System.Array element to set. |
index2 | A 64-bit integer that represents the second-dimension index of the T:System.Array element to set. |
index3 | A 64-bit integer that represents the third-dimension index of the T:System.Array element to set. |
T:System.ArgumentException | The current T:System.Array does not have exactly three dimensions. |
T:System.InvalidCastException | value cannot be cast to the element type of the current T:System.Array. |
T:System.ArgumentOutOfRangeException | index1 or index2 or index3 is outside the range of valid indexes for the corresponding dimension of the current T:System.Array. |
void System.Array.SetValue | ( | object | value, |
params long [] | indices | ||
) |
Sets a value to the element at the specified position in the multidimensional T:System.Array. The indexes are specified as an array of 64-bit integers.
value | The new value for the specified element. |
indices | A one-dimensional array of 64-bit integers that represent the indexes specifying the position of the element to set. |
T:System.ArgumentNullException | indices is null . |
T:System.ArgumentException | The number of dimensions in the current T:System.Array is not equal to the number of elements in indices . |
T:System.InvalidCastException | value cannot be cast to the element type of the current T:System.Array. |
T:System.ArgumentOutOfRangeException | Any element in indices is outside the range of valid indexes for the corresponding dimension of the current T:System.Array. |
|
static |
Sorts the elements in an entire one-dimensional T:System.Array using the T:System.IComparable implementation of each element of the T:System.Array.
array | The one-dimensional T:System.Array to sort. |
T:System.ArgumentNullException | array is null . |
T:System.RankException | array is multidimensional. |
T:System.InvalidOperationException | One or more elements in array do not implement the T:System.IComparable interface. |
Sorts a pair of one-dimensional T:System.Array objects (one contains the keys and the other contains the corresponding items) based on the keys in the first T:System.Array using the T:System.IComparable implementation of each key.
keys | The one-dimensional T:System.Array that contains the keys to sort. |
items | The one-dimensional T:System.Array that contains the items that correspond to each of the keys in the keys T:System.Array.-or- null to sort only the keys T:System.Array. |
T:System.ArgumentNullException | keys is null . |
T:System.RankException | The keys T:System.Array is multidimensional.-or-The items T:System.Array is multidimensional. |
T:System.ArgumentException | items is not null , and the length of keys is greater than the length of items . |
T:System.InvalidOperationException | One or more elements in the keys T:System.Array do not implement the T:System.IComparable interface. |
|
static |
Sorts the elements in a range of elements in a one-dimensional T:System.Array using the T:System.IComparable implementation of each element of the T:System.Array.
array | The one-dimensional T:System.Array to sort. |
index | The starting index of the range to sort. |
length | The number of elements in the range to sort. |
T:System.ArgumentNullException | array is null . |
T:System.RankException | array is multidimensional. |
T:System.ArgumentOutOfRangeException | index is less than the lower bound of array .-or- length is less than zero. |
T:System.ArgumentException | index and length do not specify a valid range in array . |
T:System.InvalidOperationException | One or more elements in array do not implement the T:System.IComparable interface. |
Sorts a range of elements in a pair of one-dimensional T:System.Array objects (one contains the keys and the other contains the corresponding items) based on the keys in the first T:System.Array using the T:System.IComparable implementation of each key.
keys | The one-dimensional T:System.Array that contains the keys to sort. |
items | The one-dimensional T:System.Array that contains the items that correspond to each of the keys in the keys T:System.Array.-or- null to sort only the keys T:System.Array. |
index | The starting index of the range to sort. |
length | The number of elements in the range to sort. |
T:System.ArgumentNullException | keys is null . |
T:System.RankException | The keys T:System.Array is multidimensional.-or-The items T:System.Array is multidimensional. |
T:System.ArgumentOutOfRangeException | index is less than the lower bound of keys .-or- length is less than zero. |
T:System.ArgumentException | items is not null , and the length of keys is greater than the length of items .-or- index and length do not specify a valid range in the keys T:System.Array.-or- items is not null , and index and length do not specify a valid range in the items T:System.Array. |
T:System.InvalidOperationException | One or more elements in the keys T:System.Array do not implement the T:System.IComparable interface. |
Sorts the elements in a one-dimensional T:System.Array using the specified T:System.Collections.IComparer.
array | The one-dimensional array to sort. |
comparer | The implementation to use when comparing elements.-or- null to use the T:System.IComparable implementation of each element. |
T:System.ArgumentNullException | array is null . |
T:System.RankException | array is multidimensional. |
T:System.InvalidOperationException | comparer is null , and one or more elements in array do not implement the T:System.IComparable interface. |
T:System.ArgumentException | The implementation of comparer caused an error during the sort. For example, comparer might not return 0 when comparing an item with itself. |
Sorts a pair of one-dimensional T:System.Array objects (one contains the keys and the other contains the corresponding items) based on the keys in the first T:System.Array using the specified T:System.Collections.IComparer.
keys | The one-dimensional T:System.Array that contains the keys to sort. |
items | The one-dimensional T:System.Array that contains the items that correspond to each of the keys in the keys T:System.Array.-or- null to sort only the keys T:System.Array. |
comparer | The T:System.Collections.IComparer implementation to use when comparing elements.-or- null to use the T:System.IComparable implementation of each element. |
T:System.ArgumentNullException | keys is null . |
T:System.RankException | The keys T:System.Array is multidimensional.-or-The items T:System.Array is multidimensional. |
T:System.ArgumentException | items is not null , and the length of keys is greater than the length of items . -or- The implementation of comparer caused an error during the sort. For example, comparer might not return 0 when comparing an item with itself. |
T:System.InvalidOperationException | comparer is null , and one or more elements in the keys T:System.Array do not implement the T:System.IComparable interface. |
Sorts the elements in a range of elements in a one-dimensional T:System.Array using the specified T:System.Collections.IComparer.
array | The one-dimensional T:System.Array to sort. |
index | The starting index of the range to sort. |
length | The number of elements in the range to sort. |
comparer | The T:System.Collections.IComparer implementation to use when comparing elements.-or- null to use the T:System.IComparable implementation of each element. |
T:System.ArgumentNullException | array is null . |
T:System.RankException | array is multidimensional. |
T:System.ArgumentOutOfRangeException | index is less than the lower bound of array .-or- length is less than zero. |
T:System.ArgumentException | index and length do not specify a valid range in array . -or- The implementation of comparer caused an error during the sort. For example, comparer might not return 0 when comparing an item with itself. |
T:System.InvalidOperationException | comparer is null , and one or more elements in array do not implement the T:System.IComparable interface. |
|
static |
Sorts a range of elements in a pair of one-dimensional T:System.Array objects (one contains the keys and the other contains the corresponding items) based on the keys in the first T:System.Array using the specified T:System.Collections.IComparer.
keys | The one-dimensional T:System.Array that contains the keys to sort. |
items | The one-dimensional T:System.Array that contains the items that correspond to each of the keys in the keys T:System.Array.-or- null to sort only the keys T:System.Array. |
index | The starting index of the range to sort. |
length | The number of elements in the range to sort. |
comparer | The T:System.Collections.IComparer implementation to use when comparing elements.-or- null to use the T:System.IComparable implementation of each element. |
T:System.ArgumentNullException | keys is null . |
T:System.RankException | The keys T:System.Array is multidimensional.-or-The items T:System.Array is multidimensional. |
T:System.ArgumentOutOfRangeException | index is less than the lower bound of keys .-or- length is less than zero. |
T:System.ArgumentException | items is not null , and the lower bound of keys does not match the lower bound of items .-or- items is not null , and the length of keys is greater than the length of items .-or- index and length do not specify a valid range in the keys T:System.Array.-or- items is not null , and index and length do not specify a valid range in the items T:System.Array. -or- The implementation of comparer caused an error during the sort. For example, comparer might not return 0 when comparing an item with itself. |
T:System.InvalidOperationException | comparer is null , and one or more elements in the keys T:System.Array do not implement the T:System.IComparable interface. |
|
static |
Sorts the elements in an entire T:System.Array using the T:System.IComparable`1 generic interface implementation of each element of the T:System.Array.
array | The one-dimensional, zero-based T:System.Array to sort. |
T | The type of the elements of the array. |
T:System.ArgumentNullException | array is null . |
T:System.InvalidOperationException | One or more elements in array do not implement the T:System.IComparable`1 generic interface. |
|
static |
Sorts the elements in a range of elements in an T:System.Array using the T:System.IComparable`1 generic interface implementation of each element of the T:System.Array.
array | The one-dimensional, zero-based T:System.Array to sort |
index | The starting index of the range to sort. |
length | The number of elements in the range to sort. |
T | The type of the elements of the array. |
T:System.ArgumentNullException | array is null . |
T:System.ArgumentOutOfRangeException | index is less than the lower bound of array .-or- length is less than zero. |
T:System.ArgumentException | index and length do not specify a valid range in array . |
T:System.InvalidOperationException | One or more elements in array do not implement the T:System.IComparable`1 generic interface. |
|
static |
Sorts the elements in an T:System.Array using the specified T:System.Collections.Generic.IComparer`1 generic interface.
array | The one-dimensional, zero-base T:System.Array to sort |
comparer | The T:System.Collections.Generic.IComparer`1 generic interface implementation to use when comparing elements, or null to use the T:System.IComparable`1 generic interface implementation of each element. |
T | The type of the elements of the array. |
T:System.ArgumentNullException | array is null . |
T:System.InvalidOperationException | comparer is null , and one or more elements in array do not implement the T:System.IComparable`1 generic interface. |
T:System.ArgumentException | The implementation of comparer caused an error during the sort. For example, comparer might not return 0 when comparing an item with itself. |
|
static |
Sorts the elements in a range of elements in an T:System.Array using the specified T:System.Collections.Generic.IComparer`1 generic interface.
array | The one-dimensional, zero-based T:System.Array to sort. |
index | The starting index of the range to sort. |
length | The number of elements in the range to sort. |
comparer | The T:System.Collections.Generic.IComparer`1 generic interface implementation to use when comparing elements, or null to use the T:System.IComparable`1 generic interface implementation of each element. |
T | The type of the elements of the array. |
T:System.ArgumentNullException | array is null . |
T:System.ArgumentOutOfRangeException | index is less than the lower bound of array .-or- length is less than zero. |
T:System.ArgumentException | index and length do not specify a valid range in array . -or- The implementation of comparer caused an error during the sort. For example, comparer might not return 0 when comparing an item with itself. |
T:System.InvalidOperationException | comparer is null , and one or more elements in array do not implement the T:System.IComparable`1 generic interface. |
|
static |
Sorts the elements in an T:System.Array using the specified T:System.Comparison`1.
array | The one-dimensional, zero-based T:System.Array to sort |
comparison | The T:System.Comparison`1 to use when comparing elements. |
T | The type of the elements of the array. |
T:System.ArgumentNullException | array is null .-or- comparison is null . |
T:System.ArgumentException | The implementation of comparison caused an error during the sort. For example, comparison might not return 0 when comparing an item with itself. |
|
static |
Sorts a pair of T:System.Array objects (one contains the keys and the other contains the corresponding items) based on the keys in the first T:System.Array using the T:System.IComparable`1 generic interface implementation of each key.
keys | The one-dimensional, zero-based T:System.Array that contains the keys to sort. |
items | The one-dimensional, zero-based T:System.Array that contains the items that correspond to the keys in keys , or null to sort only keys . |
TKey | The type of the elements of the key array. |
TValue | The type of the elements of the items array. |
T:System.ArgumentNullException | keys is null . |
T:System.ArgumentException | items is not null , and the lower bound of keys does not match the lower bound of items .-or- items is not null , and the length of keys is greater than the length of items . |
T:System.InvalidOperationException | One or more elements in the keys T:System.Array do not implement the T:System.IComparable`1 generic interface. |
|
static |
Sorts a range of elements in a pair of T:System.Array objects (one contains the keys and the other contains the corresponding items) based on the keys in the first T:System.Array using the T:System.IComparable`1 generic interface implementation of each key.
keys | The one-dimensional, zero-based T:System.Array that contains the keys to sort. |
items | The one-dimensional, zero-based T:System.Array that contains the items that correspond to the keys in keys , or null to sort only keys . |
index | The starting index of the range to sort. |
length | The number of elements in the range to sort. |
TKey | The type of the elements of the key array. |
TValue | The type of the elements of the items array. |
T:System.ArgumentNullException | keys is null . |
T:System.ArgumentOutOfRangeException | index is less than the lower bound of keys .-or- length is less than zero. |
T:System.ArgumentException | items is not null , and the lower bound of keys does not match the lower bound of items .-or- items is not null , and the length of keys is greater than the length of items .-or- index and length do not specify a valid range in the keys T:System.Array.-or- items is not null , and index and length do not specify a valid range in the items T:System.Array. |
T:System.InvalidOperationException | One or more elements in the keys T:System.Array do not implement the T:System.IComparable`1 generic interface. |
|
static |
Sorts a pair of T:System.Array objects (one contains the keys and the other contains the corresponding items) based on the keys in the first T:System.Array using the specified T:System.Collections.Generic.IComparer`1 generic interface.
keys | The one-dimensional, zero-based T:System.Array that contains the keys to sort. |
items | The one-dimensional, zero-based T:System.Array that contains the items that correspond to the keys in keys , or null to sort only keys . |
comparer | The T:System.Collections.Generic.IComparer`1 generic interface implementation to use when comparing elements, or null to use the T:System.IComparable`1 generic interface implementation of each element. |
TKey | The type of the elements of the key array. |
TValue | The type of the elements of the items array. |
T:System.ArgumentNullException | keys is null . |
T:System.ArgumentException | items is not null , and the lower bound of keys does not match the lower bound of items .-or- items is not null , and the length of keys is greater than the length of items .-or- The implementation of comparer caused an error during the sort. For example, comparer might not return 0 when comparing an item with itself. |
T:System.InvalidOperationException | comparer is null , and one or more elements in the keys T:System.Array do not implement the T:System.IComparable`1 generic interface. |
|
static |
Sorts a range of elements in a pair of T:System.Array objects (one contains the keys and the other contains the corresponding items) based on the keys in the first T:System.Array using the specified T:System.Collections.Generic.IComparer`1 generic interface.
keys | The one-dimensional, zero-based T:System.Array that contains the keys to sort. |
items | The one-dimensional, zero-based T:System.Array that contains the items that correspond to the keys in keys , or null to sort only keys . |
index | The starting index of the range to sort. |
length | The number of elements in the range to sort. |
comparer | The T:System.Collections.Generic.IComparer`1 generic interface implementation to use when comparing elements, or null to use the T:System.IComparable`1 generic interface implementation of each element. |
TKey | The type of the elements of the key array. |
TValue | The type of the elements of the items array. |
T:System.ArgumentNullException | keys is null . |
T:System.ArgumentOutOfRangeException | index is less than the lower bound of keys .-or- length is less than zero. |
T:System.ArgumentException | items is not null , and the lower bound of keys does not match the lower bound of items .-or- items is not null , and the length of keys is greater than the length of items .-or- index and length do not specify a valid range in the keys T:System.Array.-or- items is not null , and index and length do not specify a valid range in the items T:System.Array. -or- The implementation of comparer caused an error during the sort. For example, comparer might not return 0 when comparing an item with itself. |
T:System.InvalidOperationException | comparer is null , and one or more elements in the keys T:System.Array do not implement the T:System.IComparable`1 generic interface. |
Determines whether every element in the array matches the conditions defined by the specified predicate.
array | The one-dimensional, zero-based T:System.Array to check against the conditions. |
match | The predicate that defines the conditions to check against the elements. |
T | The type of the elements of the array. |
true
if every element in array matches the conditions defined by the specified predicate; otherwise, false
. If there are no elements in the array, the return value is true
.T:System.ArgumentNullException | array is null .-or- match is null . |
bool System.Array.IsFixedSize => true |
bool System.Array.IsReadOnly => false |
bool System.Array.IsSynchronized => false |
object System.Array.SyncRoot => this |
|
get |
Gets the total number of elements in all the dimensions of the T:System.Array.
T:System.OverflowException | The array is multidimensional and contains more than F:System.Int32.MaxValue elements. |
|
get |
|
get |