Array Methods
Assembly: mscorlib (in mscorlib.dll)
| Name | Description | |
|---|---|---|
![]() ![]() | AsReadOnly<'T>('T[]) | Returns a read-only wrapper for the specified array. |
![]() ![]() | BinarySearch(Array, Int32, Int32, Object) | Searches a range of elements in a one-dimensional sorted array for a value, using the IComparable interface implemented by each element of the array and by the specified value. |
![]() ![]() | BinarySearch(Array, Int32, Int32, Object, IComparer) | Searches a range of elements in a one-dimensional sorted array for a value, using the specified IComparer interface. |
![]() ![]() | BinarySearch(Array, Object) | Searches an entire one-dimensional sorted array for a specific element, using the IComparable interface implemented by each element of the array and by the specified object. |
![]() ![]() | BinarySearch(Array, Object, IComparer) | Searches an entire one-dimensional sorted array for a value using the specified IComparer interface. |
![]() ![]() | BinarySearch<'T>('T[], 'T) | Searches an entire one-dimensional sorted array for a specific element, using the IComparable<'T> generic interface implemented by each element of the Array and by the specified object. |
![]() ![]() | BinarySearch<'T>('T[], 'T, IComparer<'T>) | Searches an entire one-dimensional sorted array for a value using the specified IComparer<'T> generic interface. |
![]() ![]() | BinarySearch<'T>('T[], Int32, Int32, 'T) | Searches a range of elements in a one-dimensional sorted array for a value, using the IComparable<'T> generic interface implemented by each element of the Array and by the specified value. |
![]() ![]() | BinarySearch<'T>('T[], Int32, Int32, 'T, IComparer<'T>) | Searches a range of elements in a one-dimensional sorted array for a value, using the specified IComparer<'T> generic interface. |
![]() ![]() | Clear(Array, Int32, Int32) | Sets a range of elements in an array to the default value of each element type. |
![]() | Clone() | Creates a shallow copy of the Array. |
![]() ![]() | ConstrainedCopy(Array, Int32, Array, Int32, Int32) | |
![]() ![]() | ConvertAll<'TInput, 'TOutput>('TInput[], Converter<'TInput, 'TOutput>) | Converts an array of one type to an array of another type. |
![]() ![]() | Copy(Array, Array, Int32) | |
![]() ![]() | Copy(Array, Array, Int64) | |
![]() ![]() | Copy(Array, Int32, Array, Int32, Int32) | |
![]() ![]() | Copy(Array, Int64, Array, Int64, Int64) | |
![]() | CopyTo(Array, Int32) | Copies all the elements of the current one-dimensional array to the specified one-dimensional array starting at the specified destination array index. The index is specified as a 32-bit integer. |
![]() | CopyTo(Array, Int64) | Copies all the elements of the current one-dimensional array to the specified one-dimensional array starting at the specified destination array index. The index is specified as a 64-bit integer. |
![]() ![]() | CreateInstance(Type, Int32) | |
![]() ![]() | CreateInstance(Type, Int32, Int32) | |
![]() ![]() | CreateInstance(Type, Int32, Int32, Int32) | |
![]() ![]() | CreateInstance(Type, Int32[]) | |
![]() ![]() | CreateInstance(Type, Int32[], Int32[]) | |
![]() ![]() | CreateInstance(Type, Int64[]) | |
![]() ![]() | Empty<'T>() | Returns an empty array. |
![]() | Equals(Object) | Determines whether the specified object is equal to the current object.(Inherited from Object.) |
![]() ![]() | Exists<'T>('T[], Predicate<'T>) | Determines whether the specified array contains elements that match the conditions defined by the specified predicate. |
![]() | Finalize() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.) |
![]() ![]() | Find<'T>('T[], Predicate<'T>) | Searches for an element that matches the conditions defined by the specified predicate, and returns the first occurrence within the entire Array. |
![]() ![]() | FindAll<'T>('T[], Predicate<'T>) | Retrieves all the elements that match the conditions defined by the specified predicate. |
![]() ![]() | FindIndex<'T>('T[], Int32, Int32, Predicate<'T>) | Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the first occurrence within the range of elements in the Array that starts at the specified index and contains the specified number of elements. |
![]() ![]() | FindIndex<'T>('T[], Int32, Predicate<'T>) | Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the first occurrence within the range of elements in the Array that extends from the specified index to the last element. |
![]() ![]() | FindIndex<'T>('T[], Predicate<'T>) | Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the first occurrence within the entire Array. |
![]() ![]() | FindLast<'T>('T[], Predicate<'T>) | Searches for an element that matches the conditions defined by the specified predicate, and returns the last occurrence within the entire Array. |
![]() ![]() | FindLastIndex<'T>('T[], Int32, Int32, Predicate<'T>) | Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the last occurrence within the range of elements in the Array that contains the specified number of elements and ends at the specified index. |
![]() ![]() | FindLastIndex<'T>('T[], Int32, Predicate<'T>) | Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the last occurrence within the range of elements in the Array that extends from the first element to the specified index. |
![]() ![]() | FindLastIndex<'T>('T[], Predicate<'T>) | Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the last occurrence within the entire Array. |
![]() ![]() | ForEach<'T>('T[], Action<'T>) | Performs the specified action on each element of the specified array. |
![]() | GetEnumerator() | Returns an IEnumerator for the Array. |
![]() | GetHashCode() | Serves as the default hash function. (Inherited from Object.) |
![]() | GetLength(Int32) | Gets a 32-bit integer that represents the number of elements in the specified dimension of the Array. |
![]() | GetLongLength(Int32) | Gets a 64-bit integer that represents the number of elements in the specified dimension of the Array. |
![]() | GetLowerBound(Int32) | Gets the index of the first element of the specified dimension in the array. |
![]() | GetType() | |
![]() | GetUpperBound(Int32) | Gets the index of the last element of the specified dimension in the array. |
![]() | GetValue(Int32) | Gets the value at the specified position in the one-dimensional Array. The index is specified as a 32-bit integer. |
![]() | GetValue(Int32, Int32) | Gets the value at the specified position in the two-dimensional Array. The indexes are specified as 32-bit integers. |
![]() | GetValue(Int32, Int32, Int32) | Gets the value at the specified position in the three-dimensional Array. The indexes are specified as 32-bit integers. |
![]() | GetValue(Int32[]) | Gets the value at the specified position in the multidimensional Array. The indexes are specified as an array of 32-bit integers. |
![]() | GetValue(Int64) | Gets the value at the specified position in the one-dimensional Array. The index is specified as a 64-bit integer. |
![]() | GetValue(Int64, Int64) | Gets the value at the specified position in the two-dimensional Array. The indexes are specified as 64-bit integers. |
![]() | GetValue(Int64, Int64, Int64) | Gets the value at the specified position in the three-dimensional Array. The indexes are specified as 64-bit integers. |
![]() | GetValue(Int64[]) | Gets the value at the specified position in the multidimensional Array. The indexes are specified as an array of 64-bit integers. |
![]() ![]() | IndexOf(Array, Object) | Searches for the specified object and returns the index of its first occurrence in a one-dimensional array. |
![]() ![]() | IndexOf(Array, Object, Int32) | 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. |
![]() ![]() | IndexOf(Array, Object, Int32, Int32) | 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. |
![]() ![]() | IndexOf<'T>('T[], 'T) | Searches for the specified object and returns the index of its first occurrence in a one-dimensional array. |
![]() ![]() | IndexOf<'T>('T[], 'T, Int32) | 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. |
![]() ![]() | IndexOf<'T>('T[], 'T, Int32, Int32) | 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. |
![]() | Initialize() | Initializes every element of the value-type Array by calling the default constructor of the value type. |
![]() ![]() | LastIndexOf(Array, Object) | Searches for the specified object and returns the index of the last occurrence within the entire one-dimensional Array. |
![]() ![]() | LastIndexOf(Array, Object, Int32) | Searches for the specified object and returns the index of the last occurrence within the range of elements in the one-dimensional Array that extends from the first element to the specified index. |
![]() ![]() | LastIndexOf(Array, Object, Int32, Int32) | Searches for the specified object and returns the index of the last occurrence within the range of elements in the one-dimensional Array that contains the specified number of elements and ends at the specified index. |
![]() ![]() | LastIndexOf<'T>('T[], 'T) | Searches for the specified object and returns the index of the last occurrence within the entire Array. |
![]() ![]() | LastIndexOf<'T>('T[], 'T, Int32) | Searches for the specified object and returns the index of the last occurrence within the range of elements in the Array that extends from the first element to the specified index. |
![]() ![]() | LastIndexOf<'T>('T[], 'T, Int32, Int32) | Searches for the specified object and returns the index of the last occurrence within the range of elements in the Array that contains the specified number of elements and ends at the specified index. |
![]() | MemberwiseClone() | |
![]() ![]() | Resize<'T>('T[], Int32) | Changes the number of elements of a one-dimensional array to the specified new size. |
![]() ![]() | Reverse(Array) | Reverses the sequence of the elements in the entire one-dimensional Array. |
![]() ![]() | Reverse(Array, Int32, Int32) | Reverses the sequence of the elements in a range of elements in the one-dimensional Array. |
![]() | SetValue(Object, Int32) | Sets a value to the element at the specified position in the one-dimensional Array. The index is specified as a 32-bit integer. |
![]() | SetValue(Object, Int32, Int32) | Sets a value to the element at the specified position in the two-dimensional Array. The indexes are specified as 32-bit integers. |
![]() | SetValue(Object, Int32, Int32, Int32) | Sets a value to the element at the specified position in the three-dimensional Array. The indexes are specified as 32-bit integers. |
![]() | SetValue(Object, Int32[]) | Sets a value to the element at the specified position in the multidimensional Array. The indexes are specified as an array of 32-bit integers. |
![]() | SetValue(Object, Int64) | Sets a value to the element at the specified position in the one-dimensional Array. The index is specified as a 64-bit integer. |
![]() | SetValue(Object, Int64, Int64) | Sets a value to the element at the specified position in the two-dimensional Array. The indexes are specified as 64-bit integers. |
![]() | SetValue(Object, Int64, Int64, Int64) | Sets a value to the element at the specified position in the three-dimensional Array. The indexes are specified as 64-bit integers. |
![]() | SetValue(Object, Int64[]) | Sets a value to the element at the specified position in the multidimensional Array. The indexes are specified as an array of 64-bit integers. |
![]() ![]() | Sort(Array) | Sorts the elements in an entire one-dimensional Array using the IComparable implementation of each element of the Array. |
![]() ![]() | Sort(Array, Array) | Sorts a pair of one-dimensional Array objects (one contains the keys and the other contains the corresponding items) based on the keys in the first Array using the IComparable implementation of each key. |
![]() ![]() | Sort(Array, Array, IComparer) | |
![]() ![]() | Sort(Array, Array, Int32, Int32) | Sorts a range of elements in a pair of one-dimensional Array objects (one contains the keys and the other contains the corresponding items) based on the keys in the first Array using the IComparable implementation of each key. |
![]() ![]() | Sort(Array, Array, Int32, Int32, IComparer) | |
![]() ![]() | Sort(Array, IComparer) | |
![]() ![]() | Sort(Array, Int32, Int32) | Sorts the elements in a range of elements in a one-dimensional Array using the IComparable implementation of each element of the Array. |
![]() ![]() | Sort(Array, Int32, Int32, IComparer) | |
![]() ![]() | Sort<'T>('T[]) | Sorts the elements in an entire Array using the IComparable<'T> generic interface implementation of each element of the Array. |
![]() ![]() | Sort<'T>('T[], Comparison<'T>) | Sorts the elements in an Array using the specified Comparison<'T>. |
![]() ![]() | Sort<'T>('T[], IComparer<'T>) | Sorts the elements in an Array using the specified IComparer<'T> generic interface. |
![]() ![]() | Sort<'T>('T[], Int32, Int32) | Sorts the elements in a range of elements in an Array using the IComparable<'T> generic interface implementation of each element of the Array. |
![]() ![]() | Sort<'T>('T[], Int32, Int32, IComparer<'T>) | Sorts the elements in a range of elements in an Array using the specified IComparer<'T> generic interface. |
![]() ![]() | Sort<'TKey, 'TValue>('TKey[], 'TValue[]) | Sorts a pair of Array objects (one contains the keys and the other contains the corresponding items) based on the keys in the first Array using the IComparable<'T> generic interface implementation of each key. |
![]() ![]() | Sort<'TKey, 'TValue>('TKey[], 'TValue[], IComparer<'TKey>) | Sorts a pair of Array objects (one contains the keys and the other contains the corresponding items) based on the keys in the first Array using the specified IComparer<'T> generic interface. |
![]() ![]() | Sort<'TKey, 'TValue>('TKey[], 'TValue[], Int32, Int32) | Sorts a range of elements in a pair of Array objects (one contains the keys and the other contains the corresponding items) based on the keys in the first Array using the IComparable<'T> generic interface implementation of each key. |
![]() ![]() | Sort<'TKey, 'TValue>('TKey[], 'TValue[], Int32, Int32, IComparer<'TKey>) | Sorts a range of elements in a pair of Array objects (one contains the keys and the other contains the corresponding items) based on the keys in the first Array using the specified IComparer<'T> generic interface. |
![]() | ToString() | Returns a string that represents the current object.(Inherited from Object.) |
![]() ![]() | TrueForAll<'T>('T[], Predicate<'T>) | Determines whether every element in the array matches the conditions defined by the specified predicate. |
| Name | Description | |
|---|---|---|
![]() | AsParallel() | Overloaded. Enables parallelization of a query.(Defined by ParallelEnumerable.) |
![]() | AsQueryable() | Overloaded. Converts an IEnumerable to an IQueryable.(Defined by Queryable.) |
![]() | Cast<'TResult>() | Casts the elements of an IEnumerable to the specified type.(Defined by Enumerable.) |
![]() | OfType<'TResult>() | Filters the elements of an IEnumerable based on a specified type.(Defined by Enumerable.) |
| Name | Description | |
|---|---|---|
![]() ![]() | IList.Add(Object) | Calling this method always throws a NotSupportedException exception. |
![]() ![]() | IList.Clear() | Removes all items from the IList. |
![]() ![]() | IList.Contains(Object) | Determines whether an element is in the IList. |
![]() ![]() | IList.IndexOf(Object) | Determines the index of a specific item in the IList. |
![]() ![]() | IList.Insert(Int32, Object) | Inserts an item to the IList at the specified index. |
![]() ![]() | IList.Remove(Object) | Removes the first occurrence of a specific object from the IList. |
![]() ![]() | IList.RemoveAt(Int32) | Removes the IList item at the specified index. |
![]() ![]() | IStructuralComparable.CompareTo(Object, IComparer) | Determines whether the current collection object precedes, occurs in the same position as, or follows another object in the sort order. |
![]() ![]() | IStructuralEquatable.Equals(Object, IEqualityComparer) | Determines whether an object is equal to the current instance. |
![]() ![]() | IStructuralEquatable.GetHashCode(IEqualityComparer) | Returns a hash code for the current instance. |




