C#/XAML for HTML5 Documentation
C#/XAML for HTML5 Documentation
Reference
System
Array Class
Array Methods
Sort Method
Sort(T) Method (T[])
Sort Method (Array)
Sort(T) Method (T[], IComparer(T))
Sort(T) Method (T[], Comparison(T))
Sort(TKey, TValue) Method (TKey[], TValue[])
Sort Method (Array, Array)
Sort Method (Array, IComparer)
Sort(T) Method (T[], Int32, Int32)
Sort(TKey, TValue) Method (TKey[], TValue[], IComparer(TKey))
Sort Method (Array, Array, IComparer)
Sort Method (Array, Int32, Int32)
Sort(T) Method (T[], Int32, Int32, IComparer(T))
Sort(TKey, TValue) Method (TKey[], TValue[], Int32, Int32)
Sort Method (Array, Array, Int32, Int32)
Sort Method (Array, Int32, Int32, IComparer)
Sort(TKey, TValue) Method (TKey[], TValue[], Int32, Int32, IComparer(TKey))
Sort Method (Array, Array, Int32, Int32, IComparer)
Array
Sort
T
Method (
T
)
Sorts the elements in an entire
Array
using the
IComparable
T
generic interface implementation of each element of the
Array
.
Namespace:
System
Assembly:
mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
Copy
public
static
void
Sort
<T>( T[]
array
)
Parameters
array
Type:
T
The one-dimensional, zero-based
Array
to sort.
Type Parameters
T
The type of the elements of the array.
Exceptions
Exception
Condition
ArgumentNullException
array
is null.
InvalidOperationException
One or more elements in
array
do not implement the
IComparable
T
generic interface.
See Also
Reference
Array Class
Sort Overload
System Namespace