how to get the items from the list in c# 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));