using System.Collections.Generic;
public class ExtensionMethods2
public static void Main()
int[] ints = { 10, 45, 15, 39, 21, 26 };
var result = ints.OrderBy(g => g);
foreach (var i in result)
System.Console.Write(i + " ");
Console.WriteLine(ints.Min());
Console.WriteLine(ints.Max());
List<long> longs = new List<long> { 4294967296L, 466855135L, 81125L };
Console.WriteLine("The largest number is {0}.", max);