摘要:本篇介绍Linq的集合操作,继续使用《Linq 学习(3) 语法结构》中介绍的数据源。Count/LongCountCount/LongCount 返回结果集中元素的数量,返回类型分别为int/long。原型为:public static int Count<TSource>(this IEnumerable<TSource> source[, Func<TSourc...
阅读全文
posted @ 2008-08-26 10:04