This article describes the C# selection sorting method. Share it for your reference. The details are as follows:
public static void SelectSort (int[] list) { for (int i = 0; i < ; i++) { int min = i; for (int j = i + 1; j < ; j++) if(list [j] < list [min]) min = j; if(min ! = i) { int Temp = list [min]; list [min] = list [i]; list [i] = Temp; } } }
I hope this article will be helpful to everyone's C# programming.