c# linq join multiple conditions

C#
from a in A 
join b in B on
new { P1 = a.P1, P2 =a.P2 } equals
new { P1 = b.P1, P2 = b.P2 }
Source

Also in C#: