<pre> System.Collections.ArrayList aa = new System.Collections.ArrayList(); aa.Add(8.9D); aa.Add("Hello"); aa.Add(1.2); aa.Add(2); aa.Add(4.5); aa.Add("ABC"); //Before foreach (object obj in aa) { Console.WriteLine(obj.ToString()); } aa.Sort(); //After foreach (object obj in aa) { Console.WriteLine(obj.ToString()); }
Array.Sort
IComparer
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)