Esempio n. 1
0
 /// <summary>
 /// Compares equality between this instance and a value.
 /// </summary>
 /// <param name="other">The other value.</param>
 /// <returns></returns>
 public bool Equals(CurrencyInfo other)
 {
     if (ReferenceEquals(null, other))
     {
         return false;
     }
     return ReferenceEquals(this, other) || Equals(other.Code, Code);
 }
Esempio n. 2
0
 public Money(CurrencyInfo currencyInfo, long units) : this(currencyInfo)
 {
     _units = units;
 }
Esempio n. 3
0
 public Money(CurrencyInfo currencyInfo, decimal value) : this(currencyInfo)
 {
     _units = ScaleUp(value);
 }
Esempio n. 4
0
 private Money(CurrencyInfo currencyInfo) : this()
 {
     _createdDate  = DateTime.UtcNow;
     _currencyInfo = currencyInfo;
 }