ImmutableArray<T>::Sort Method (Comparison<T>^)

 

Sorts the elements in the entire ImmutableArray<T> using the specified Comparison<T>.

Namespace:   System.Collections.Immutable
Assembly:  System.Collections.Immutable (in System.Collections.Immutable.dll)

public:
ImmutableArray<T> Sort(
	Comparison<T>^ comparison
)

Parameters

comparison
Type: System::Comparison<T>^

The Comparison<T> to use when comparing elements.

Return Value

Type: System.Collections.Immutable::ImmutableArray<T>

The sorted list.

Exception Condition
ArgumentNullException

comparison is null.

Return to top
Show: