How to Sort Arrays in C#


If you have created an array of integers or strings in C# and you want to sort it quickly You can use static method of Array class.

int[] ar = { 3, 1, 2, 7, 5, 4, 6 }; 

Array.Sort(ar);

 

 

About author


User avatar

Waqas Anwar

Founder of EzzyLearning.com, Senior Consultant, Microsoft .NET and Web Technologies

Add Comment