c# list find all elements code example
Example 1: c# find element in list of list
var element = (from sublist in userList
from item in sublist
where item.uniqueidentifier == someid
select item).FirstOrDefault();
Example 2: 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));