public static IAsyncResult BeginSort<T>(
ArraySection<T> array,
IComparer<T>? comparer = null,
AsyncConfig? asyncConfig = null
)
Public Shared Function BeginSort(Of T) (
array As ArraySection(Of T),
Optional comparer As IComparer(Of T) = Nothing,
Optional asyncConfig As AsyncConfig = Nothing
) As IAsyncResultpublic:
generic<typename T>
static IAsyncResult^ BeginSort(
ArraySection<T> array,
IComparer<T>^ comparer = nullptr,
AsyncConfig^ asyncConfig = nullptr
)static member BeginSort :
array : ArraySection<'T> *
?comparer : IComparer<'T> *
?asyncConfig : AsyncConfig
(* Defaults:
let _comparer = defaultArg comparer null
let _asyncConfig = defaultArg asyncConfig null
*)
-> IAsyncResult In .NET Framework 4.0 and above you can use also the SortAsync methods.
To get the result or the exception that occurred during the operation you have to call the EndSort method.
This method is not a blocking call even if the MaxDegreeOfParallelism property of the asyncConfig parameter is 1.