Working with NSort and RSS.NET
(Page 1 of 4 )
In this part of our continuing series on working with code libraries, you will learn about NSort and RSS.NET. This article is excerpted from chapter four of the book
Windows Developer Power Tools, written by James Avery and Jim Holmes (O'Reilly; ISBN: 0596527543). Copyright © 2006 O'Reilly Media, Inc. All rights reserved. Used with permission from the publisher. Available from booksellers or direct from O'Reilly Media.
4.8 Sorting Algorithms in C Sharp 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.
NSort Library at a Glance Tool | NSort Library |
Version covered | 1.0 |
Home page | http://www.codeproject.com/csharp/cssorters.asp |
Power Tools page | http://www.windevpowertools.com/tools/148 |
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.
Next: Using NSort >>
More BrainDump Articles
More By O'Reilly Media
|
This article is excerpted from chapter four of the book Windows Developer Power Tools, written by James Avery and Jim Holmes (O'Reilly; ISBN: 0596527543). Check it out today at your favorite bookstore. Buy this book now.
|
|