Spaghetti Tom
Tuesday, May 30, 2017
Doing a .Select off of a collection in C# to sort of reduce the collection to a collection of one of its properties can be a lot of fun!
var nonMagicCats = cats.Where(c=> kittens.Select(k=>k.Id).Contains(c.Id));
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment