METHOD
Enumerable.GroupJoin
Associates each outer item with its matching inner sequence.
Formal Syntax & Structure
csharp syntaxcsharp
outer.GroupJoin(inner, outerKeySelector, innerKeySelector, resultSelector)Working Example
Example Snippetcsharp
using System;using System.Linq;var q = new[] {1,2}.GroupJoin(new[] {2,2}, x=>x, y=>y, (x,ys)=>ys.Count());