Beyond_Beyaan.Fleet.GetExpenses C# (CSharp) Метод

GetExpenses() публичный Метод

public GetExpenses ( ) : float
Результат float
        public float GetExpenses()
        {
            float amount = 0;
            foreach (KeyValuePair<Ship, int> ship in ships)
            {
                amount += ship.Key.Maintenance * ship.Value;
            }
            return amount;
        }