|
using System;
using System.Collections.Generic;
using Sorting.StringSort;
namespace SortTests.Sorting
{
public class sfList : List<string>
{
public sfList() : base() { }
public sfList(int size) : base(size) { }
public sfList(IEnumerable<String> aArray) : base(aArray) { }
public new void Sort()
{
string[] a = this.ToArray();
this.Clear();
//sort array and refill contents of this (faster than directly sorting List)
StringSort.Sort(a);
this.AddRange(a);
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Dan Randolph is currently a Web Applications Developer with Delcan. Mr. Randolph has a B.S. dergee in Computer Science from the University of Wyoming. He is an active member of the Denver Visual Studio User Group. You can find him posting in the forums on [code.]msdn.microsoft.com and Code Project.