Example #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);
        }
Example #2
0
 public override string ToString() => (currencyType != -1) ? value + " " + CurrentTypes.getType(currencyType) : "Unadditional values";
Example #3
0
 public Money(decimal value, int currencyType)
 {
     this.value        = value;
     this.currencyType = (CurrentTypes.getType(currencyType) != null) ? currencyType : -1;
 }