/// <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; } }
/// <summary> /// Removes the specified currency. /// </summary> /// <param name="currency">The currency.</param> public void Remove(Currency currency) { Bag.Remove(currency); }
/// <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); }