The following is the simple form of SelectMany()
. How if at all can we convert this into query syntax?
var array = new string[] { "Shaun", "Luttin" };
array
.SelectMany(
s => s
);
The best that I can do produces the same output but introduces a new variable c
...
var query =
from s in array.AsQueryable()
from c in s
select c;
...and results in the following fluent syntax.
array
.SelectMany (
s => s,
(s, c) => c
);
Re: Possible Duplication
I have read the answers to Is there a C# LINQ syntax for the Queryable.SelectMany() method? I'm afraid the answers' translation's do not compile back to the original fluent syntax.