2011年6月5日
摘要: 一、linq查询可以做什么linq表达式可以从数据源(这里好似一个int[])中,按照一定条件(where语句指定)检索数据,生成一个新的序列,但是不改变单个元素。然后可以根据各种方式对返回的序列进行排序或者分组。 1 namespace LinqExpress 2 { 3 class Program 4 { 5 private static int[] strocs = { 75, 80, 98, 78, 86, 65, 50, 90 }; 6 static void Main(string[] args) 7 { 8 var highScoresQuery = from stroc in 阅读全文
posted @ 2011-06-05 23:16 小段段 阅读(596) 评论(0) 推荐(0) 编辑