c# get an element from a list code example
Example: c# get all elements from list
You could get the Customers like this:
using System.Linq;
collectionCarts.SelectMany(c => c.OrderList.Select(o => o.Customer));
You could get the Customers like this:
using System.Linq;
collectionCarts.SelectMany(c => c.OrderList.Select(o => o.Customer));