|
ProcessQueueTSort(Int32, Int32, IComparerT) Method
|
Sorts the elements in a range of elements in the
ProcessQueueT, using the specified comparer.
Namespace: GSF.CollectionsAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.181-beta
Syntax abstract Sort :
index : int *
count : int *
comparer : IComparer<'T> -> unit
override Sort :
index : int *
count : int *
comparer : IComparer<'T> -> unit
function Sort(index, count, comparer);
View SourceParameters
- index Int32
- The zero-based starting index of the range to sort.
- count Int32
- The length of the range to sort.
- comparer IComparerT
- The Generic.IComparer implementation to use when comparing elements, or null to use
the default comparer: Generic.Comparer.Default.
Exceptions Exception | Condition |
---|
ArgumentException | The implementation of comparer caused an error during the sort. For
example, comparer might not return 0 when comparing an item with itself. |
InvalidOperationException | the comparer is null and the default comparer,
Generic.Comparer.Default, cannot find an implementation of the IComparable generic interface or the
IComparable interface for type T. |
ArgumentOutOfRangeException | index is less than 0 -or- count is less than 0. |
See Also