April 1, 2009 07:05 by
admin
Is anyone out there interested in taking over LINQRecipes.com and LINQCookbook.com?
Please email jeff at consultutah.com for more information.
Thank you!
Be the first to rate this post
- Currently 0/5 Stars.
- 1
- 2
- 3
- 4
- 5
January 30, 2009 03:06 by
admin
Be the first to rate this post
- Currently 0/5 Stars.
- 1
- 2
- 3
- 4
- 5
January 27, 2009 01:21 by
admin
Currently rated 5.0 by 1 people
- Currently 5/5 Stars.
- 1
- 2
- 3
- 4
- 5
January 26, 2009 01:31 by
admin
Be the first to rate this post
- Currently 0/5 Stars.
- 1
- 2
- 3
- 4
- 5
January 26, 2009 01:27 by
admin
Be the first to rate this post
- Currently 0/5 Stars.
- 1
- 2
- 3
- 4
- 5
September 2, 2008 01:09 by
admin
Currently rated 4.0 by 1 people
- Currently 4/5 Stars.
- 1
- 2
- 3
- 4
- 5
August 21, 2008 01:24 by
admin
Glenn Block has an implementation of ForEach for IEnumerable:
1: public static class IEnumerableUtils {
2: public static void ForEach<T>(this IEnumerable<T> collection, Action<T> action) {
3: foreach(T item in collection) {
4: action(item);
5: }
6: }
Be the first to rate this post
- Currently 0/5 Stars.
- 1
- 2
- 3
- 4
- 5
August 21, 2008 01:18 by
admin
Eric White has a post on finding duplicates using LINQ. Here is the sample:
1: int[] listOfItems = new[] { 4, 2, 3, 1, 6, 4, 3 };
2:
3: var duplicates = listOfItems
4: .GroupBy(i => i)
5: .Where(g => g.Count() > 1)
6: .Select(g => g.Key);
7:
8: foreach (var d in duplicates) {
9: Console.WriteLine(d);
10: }
Be the first to rate this post
- Currently 0/5 Stars.
- 1
- 2
- 3
- 4
- 5
July 14, 2008 00:49 by
admin
Be the first to rate this post
- Currently 0/5 Stars.
- 1
- 2
- 3
- 4
- 5
July 14, 2008 00:47 by
admin
Be the first to rate this post
- Currently 0/5 Stars.
- 1
- 2
- 3
- 4
- 5