Ejemplo 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);
 }
Ejemplo n.º 2
0
 public Money(CurrencyInfo currencyInfo, long units) : this(currencyInfo)
 {
     _units = units;
 }
Ejemplo n.º 3
0
 public Money(CurrencyInfo currencyInfo, decimal value) : this(currencyInfo)
 {
     _units = ScaleUp(value);
 }
Ejemplo n.º 4
0
 private Money(CurrencyInfo currencyInfo) : this()
 {
     _createdDate  = DateTime.UtcNow;
     _currencyInfo = currencyInfo;
 }