C# 14 · Collections and LINQ
Join two sequences
Match items from two sequences by a key.
var rows = orders.Join(users, o => o.UserId, u => u.Id, (o, u) => new { u.Name, o.Amount });
C# 14 · Collections and LINQ
Match items from two sequences by a key.
var rows = orders.Join(users, o => o.UserId, u => u.Id, (o, u) => new { u.Name, o.Amount });
Was this page helpful?