Sorts the elements in an entire one-dimensional Array, using the IComparable interface implemented by each element of the Array.
[Visual Basic] Overloads Public Shared Sub Sort( _ ByVal array As Array _ ) [C#] public static void Sort( Array array ); [C++] public: static void Sort( Array* array ); [JScript] public static function Sort( array : Array );
None.
Exception Type | Condition |
---|---|
ArgumentNullException | array is a null reference (in Visual Basic Nothing). |
RankException | array is multidimensional. |
Each element of array must implement the IComparable interface to be capable of comparisons with every other element in array.
Array Class | Array Members | System Namespace | Array.Sort Overload List | IComparable | BinarySearch