Here's an implementation of MergeSort in C#:
main.cs1030 chars59 linesTo use this implementation, you can simply call MergeSort and pass in your array of integers:
main.cs71 chars3 lines
After the call to MergeSort, arr will be sorted in ascending order.
gistlibby LogSnag