You use this class like;
QuickSort<int> sortObject = new QuickSort<int>();
sortObject.qs(new int[] {20,56,45,12 });
sortObject.Sort();
int[] test = sortObject.Output;
foreach (int value in test)
{
Console.WriteLine(value);
}
the
qs
function loads the array of values then calling
Sort
actually sorts the array and you get the sorted array out with the
Output
property.