Xeno-rat
Loading...
Searching...
No Matches
NAudio.Utils.MergeSort Class Reference
Collaboration diagram for NAudio.Utils.MergeSort:

Static Public Member Functions

static void Sort< T > (IList< T > list)
 MergeSort a list of comparable items.
 
static void Sort< T > (IList< T > list, IComparer< T > comparer)
 MergeSort a list.
 

Static Private Member Functions

static void Sort< T > (IList< T > list, int lowIndex, int highIndex, IComparer< T > comparer)
 Sorts the elements of the input list using the specified comparer.
 

Member Function Documentation

◆ Sort< T >() [1/3]

static void NAudio.Utils.MergeSort.Sort< T > ( IList< T > list)
inlinestatic

MergeSort a list of comparable items.

Type Constraints
T :IComparable<T> 

◆ Sort< T >() [2/3]

static void NAudio.Utils.MergeSort.Sort< T > ( IList< T > list,
IComparer< T > comparer )
inlinestatic

MergeSort a list.

◆ Sort< T >() [3/3]

static void NAudio.Utils.MergeSort.Sort< T > ( IList< T > list,
int lowIndex,
int highIndex,
IComparer< T > comparer )
inlinestaticprivate

Sorts the elements of the input list using the specified comparer.

Template Parameters
TThe type of elements in the list.
Parameters
listThe list to be sorted.
comparerThe comparer to use for sorting.
Exceptions
ArgumentNullExceptionThrown when the input list or comparer is null.

This method sorts the elements of the input list in place using the specified comparer. The sorting algorithm used is not specified and may vary based on the implementation of the comparer.


The documentation for this class was generated from the following file: