C#. Quicksort is a very elegant general purpose sorting algorithm. Quicksort is a divide and conquer sorting algorithm. This example uses the quicksort algorithm to sort an array of string elements. this is tutorial on how to write a quick sorting Algorithm in C# Using Visual Studio.