コード例 #1
0
    private double CalculateCalories()
    {
        double calories = dough.TotalCalories() + toppings.Sum(t => t.TotalCalories());

        return(calories);
    }