随笔分类 -  Linq

摘要:https://msdn.microsoft.com/en-us/library/bb549218(v=vs.110).aspx public static TAccumulate Aggregate<TSource, TAccumulate>(this IEnumerable<TSource> s 阅读全文
posted @ 2016-10-12 10:04 ChuckLu 阅读(455) 评论(0) 推荐(0)
摘要:https://msdn.microsoft.com/en-us/library/bb397676(v=vs.100).aspx Language-Integrated Query (LINQ) is the name for a set of technologies based on the i 阅读全文
posted @ 2016-03-29 10:07 ChuckLu 阅读(429) 评论(0) 推荐(0)
摘要:Determines whether two sequences are equal by comparing the elements by using the default equality comparer for their type. public static bool Sequenc 阅读全文
posted @ 2016-02-16 13:40 ChuckLu 阅读(1012) 评论(0) 推荐(0)
摘要:Method syntax:Enumerable.Range(1, 100).ToList().ForEach(Console.WriteLine);Query syntax:(from n in Enumerable.Range(1, 100) select n) .ToList().For... 阅读全文
posted @ 2015-08-17 16:36 ChuckLu 阅读(254) 评论(0) 推荐(0)
摘要:System.Linq System.Linq.Enumerable 类 Range Repeat Reverse Select Where Sum Zip Aggregate Count FirstOrDefault Join Max Min //Returns the only element 阅读全文
posted @ 2015-07-10 14:52 ChuckLu 阅读(234) 评论(0) 推荐(0)
摘要:书名:LINQ: The Future of Data Access in C# 3.0 Learn LINQ and the C# 3.0 Features That Support It http://shop.oreilly.com/product/9780596528416.do 具体的章节 阅读全文
posted @ 2015-07-07 15:25 ChuckLu 阅读(287) 评论(0) 推荐(0)