larryg
New member
- Joined
- Mar 27, 2021
- Messages
- 3
- Programming Experience
- Beginner
Hi,
In reading the 101 Linq Samples, I have come across the following example:
I'm looking to find the code equivalent using the lambda syntax.
It seems the method to use is SelectMany, is that the case?
Thank you,
Larry
In reading the 101 Linq Samples, I have come across the following example:
C#:
List<Customer> customers = GetCustomerList();
var orders = from c in customers
from o in c.Orders
where o.OrderDate >= new DateTime(1998, 1, 1)
select (c.CustomerID, o.OrderID, o.OrderDate);
I'm looking to find the code equivalent using the lambda syntax.
It seems the method to use is SelectMany, is that the case?
Thank you,
Larry