Mono Class Library: System.Array Overview | MembersSystem.Array.Sort Method |
Sorts the elements in the specified range of the specified one-dimensional Array. [Edit]
|
Type Reason ArgumentNullException array is null. [Edit] RankException array has more than one dimension. [Edit] ArgumentOutOfRangeException index < array.GetLowerBound(0).
-or-
length < 0.
[Edit]ArgumentException index and length do not specify a valid range in array. [Edit] InvalidOperationException One or more elements in array that are used in a comparison do not implement the IComparable interface. [Edit]
This version of Array.Sort(Array) is equivalent to Array.Sort(Array)(array, null , index, length, null).
Each element of array is required to implement the IComparable interface to be capable of comparisons with every other element in array. If the sort is not successfully completed, the results are unspecified.
[Edit]
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0