LINQ Intersect Matt Pavey April 05, 2011 LINQ No comments I had a situation where I needed to get the intersection of two lists and found that using a simple LINQ statement made it very easy. x.Split(",").Select(Function(x) x.Trim).Intersect(y, StringComparer.OrdinalIgnoreCase) http://msdn.microsoft.com/en-us/library/bb460136.aspx Share This: Facebook Twitter Google+ Stumble Digg Email ThisBlogThis!Share to XShare to Facebook
0 comments: