I have a class Customer that holds an array of class Order.
class Customer
{
public string firstname { get; set; }
public string lastname { get; set; }
public Order[] orders {get; set;}
}
I need to write a LINQ to find the total number of orders of all customers but I don't understand how to do it. For example I have created 8 customers and they have 3 orders each so I should print out 24.
Any help is appreciated!