Exemplo n.º 1
0
 /// <summary>
 /// Gets the <see cref="Arc.Domain.Units.Money"/> with the specified currency.
 /// </summary>
 /// <value></value>
 public Money this[Currency currency]
 {
     get
     {
         return Bag.ContainsKey(currency) ? Bag[currency] : null;
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Removes the specified currency.
 /// </summary>
 /// <param name="currency">The currency.</param>
 public void Remove(Currency currency)
 {
     Bag.Remove(currency);
 }
Exemplo n.º 3
0
 /// <summary>
 /// Determines whether the specified currency is in bag.
 /// </summary>
 /// <param name="currency">The currency.</param>
 /// <returns>
 /// 	<c>true</c> if the specified currency is in bag; otherwise, <c>false</c>.
 /// </returns>
 public bool Contains(Currency currency)
 {
     return Bag.ContainsKey(currency);
 }