Click or drag to resize
ArraySort Method (Array)
Sorts the elements in an entire one-dimensional Array using the IComparable implementation of each element of the Array.

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public static void Sort(
	Array array
)

Parameters

array
Type: SystemArray
The one-dimensional Array to sort.
Exceptions
ExceptionCondition
ArgumentNullExceptionarray is null.
RankExceptionarray is multidimensional.
InvalidOperationExceptionOne or more elements in array do not implement the IComparable interface.
See Also