4.8 Sorting Algorithms in C# with NSort
The NSort Library is a collection of sort methods utilizing customizable swap and compare methods. You can select an appropriate sort algorithm based on the data requirements, and, for complex data types, you can implement a custom comparer. You can also customize the swap method to accommodate any special requirements when swapping two data elements and easily exchange one sort algorithm for another using the ISort interface.
| |
|---|---|
Tool | NSort Library |
Version covered | 1.0 |
Home page | |
Power Tools page | |
Summary | A collection of sorting algorithms in an extensible framework |
License type | Unknown |
Online resources | Code Project article at http://www.codeproject.com/csharp/cssorters.asp, forum |
Supported Frameworks | .NET 1.1, 2.0 |
Getting Started
NSort’s sorting algorithms were written in C# with version 1.1 of the .NET Framework. They can also be used with C# 2.0 and version 2.0 of the .NET Framework, but generics are not supported. A separate version supporting generics is available from http://www.projectdistributor.net/Projects/Project.aspx?projectId=108.
To use the sorting algorithms, add a reference to the NSort assembly to your project’s assembly references. Alternatively, you can add the NSort.csproj file to your solution.
Using NSort
The NSort Library provides ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access
