摘要: class ExtensionMethods2 { 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 + " "); } } }namespace ExtensionMethods{ public static class MyExtensions { public static int WordCount(this Stri 阅读全文
posted @ 2011-07-25 10:17 湛然 阅读(189) 评论(0) 推荐(0) 编辑