2 ms·
Yes. Something like: List<List<Blah>> records; We would send a request off to multiple services, wait for all the responses and then the front end would somet
by scarface74 10y ago
Yes. Something like:
List<List<Blah>> records;
We would send a request off to multiple services, wait for all the responses and then the front end would sometimes need all of the lists and other times need it flatten.
How would I do it?
var allitems = records.SelectMany(b => b).ToList();