Spaghetti Tom
Thursday, February 23, 2012
using .Concat() with .Distinct() to get a list of T from two sources without duplicates
var allBazes = Foo.GetBazes(qux).Concat(Bar.GetBazes(qux)).Distinct().ToList();
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment