METHOD

Enumerable.Join

Produces one result per matching pair.

Formal Syntax & Structure

csharp syntaxcsharp
outer.Join(inner, outerKeySelector, innerKeySelector, resultSelector)

Working Example

Example Snippetcsharp
using System;using System.Linq;var q = new[] {1,2}.Join(new[] {2,3}, x=>x, y=>y, (x,y)=>x);
C# & .NET Reference