使用Linq or Lambda进行查询,能感觉思路很清晰,昨天花了一个下午,今天花了一个下午,自己动手做了一些练习,总算是摸清了一些常用的操作。下面是我一些练习的代码。 int[] intarr = { 6, 1, 2, 3, 4, 5, 7, 8 }; string[] strarr = { "7", "10", "11", "8", "9" }; List<Person> list = new List<Person> { new Person(18,"well","a",800), new Person(19,"mike","b",600), new Person(25,"bruce","a",700), new Person(28,"summer","b",500), new Person(33,"energy","a",900), new Person(50,"water","c",1000), new Person(60,"spring","d",1200), new Person(61,"fisher","a",1100), new Person(65,"fish","a",400) }; Console.Wr……
阅读全文