AdventureWorks.UILogic.ViewModels.ShoppingCartPageViewModel.CalculateFullPrice C# (CSharp) Метод

CalculateFullPrice() приватный Метод

private CalculateFullPrice ( ) : double
Результат double
        private double CalculateFullPrice()
        {
            double fullPrice = 0;
            foreach (var shoppingCartItemViewModel in _shoppingCartItemViewModels)
            {
                fullPrice += shoppingCartItemViewModel.FullPriceDouble;
            }

            return fullPrice;
        }