Answer the question
In order to leave comments, you need to log in
How to use nested loops in LINQ extension methods in c#?
There is a code that is written in pure LINQ
var array = from buyer in buyers
from auto in autos
where auto.Model == buyer.Model
select new
{
Name = buyer.Name,
Tel = buyer.Tel,
Brand = auto.Brand,
Model = auto.Model,
Year = auto.Year,
Color = auto.Color
};
Answer the question
In order to leave comments, you need to log in
Nested from in is SelectMany
But in general what you have is clearly Join
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question