Пример #1
0
        public override string ToString()
        {
            String s = "";

            foreach (KeyValuePair <int, decimal> pair in payments)
            {
                if (pair.Value != 0)
                {
                    s += pair.Value + " " + CurrentTypes.getType(pair.Key) + "\n";
                }
            }

            return(s);
        }
Пример #2
0
 public override string ToString() => (currencyType != -1) ? value + " " + CurrentTypes.getType(currencyType) : "Unadditional values";
Пример #3
0
 public Money(decimal value, String currencyType)
 {
     this.value        = value;
     this.currencyType = CurrentTypes.addType(currencyType);
 }
Пример #4
0
 public Money(decimal value, int currencyType)
 {
     this.value        = value;
     this.currencyType = (CurrentTypes.getType(currencyType) != null) ? currencyType : -1;
 }