var pairs =
from a in numbersA,
b in numbersB
where a < b
select new {a, b};
but if you try this code you will get compile error:
"A query body must end with a select clause or a group clause"
The code should be:
var pairs =
from a in numbersA
from b in numbersB
where a < b
select new {a, b};
I am wondering how they gets their results.
No comments:
Post a Comment