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