Spaghetti Tom
Thursday, October 27, 2011
use .Distinct when using .Concat to get rid of the duplicates
var ids = foo.Concat(bar).Concat(baz).Concat(qux).Distinct().ToList();
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment