随笔分类 -  LINQ

摘要:由于最近在学LINQ,在学习过程中突然想起了当前看C的时候的一道题目"统计一个字符串中各个字符的个数"。发现用LINQ实在是太方便了。。CODE: class CountChar { static void Main(string[] args) { string strTest = "abcaabb!@??d"; var query = from ch in strTest gro... 阅读全文
posted @ 2009-08-23 19:21 Mangos 阅读(518) 评论(0) 推荐(0)
摘要:无聊的测试程序。。 class ConsolePage { static void Main(string[] args) { List<int> a = new List<int>(){ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, ... 阅读全文
posted @ 2009-08-23 19:20 Mangos 阅读(228) 评论(0) 推荐(0)