コード例 #1
0
ファイル: MoneyBag.cs プロジェクト: marektihkan/Arc
 /// <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;
     }
 }
コード例 #2
0
ファイル: MoneyBag.cs プロジェクト: marektihkan/Arc
 /// <summary>
 /// Removes the specified currency.
 /// </summary>
 /// <param name="currency">The currency.</param>
 public void Remove(Currency currency)
 {
     Bag.Remove(currency);
 }
コード例 #3
0
ファイル: MoneyBag.cs プロジェクト: marektihkan/Arc
 /// <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);
 }