LINQ join to create anonymous type


/ Published in: C#
Save to your folder(s)



Copy this code and paste it in your HTML
  1. var q = from c in customers
  2. join o in orders on c.Key equals o.Key
  3. select new {c.Name, o.OrderNumber};

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.