Click or drag to resize
ArraySortT Method (T)
Sorts the elements in an entire Array using the IComparableT generic interface 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<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
ExceptionCondition
ArgumentNullExceptionarray is null.
InvalidOperationExceptionOne or more elements in array do not implement the IComparableT generic interface.
See Also