Ejemplo n.º 1
0
 public TMoney()
 {
     Amount   = 0m;
     Currency = new TCurrency
     {
         CurrencyId   = 0,
         CurrencyCode = "NA",
         Symbol       = ""
     };
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Represents an amount of TMoney in a specific currency.
 /// </summary>
 public TMoney(decimal amount, CurrencyTypes currencyType)
     : this(amount, TCurrency.Get(currencyType))
 {
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Represents an amount of TMoney in a specific currency.
 /// </summary>
 public TMoney(decimal amount, String isoCurrencyCode)
     : this(amount, TCurrency.Get(isoCurrencyCode))
 {
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Represents an amount of TMoney in a specific currency.
 /// </summary>
 public TMoney(decimal amount, int currencyId)
     : this(amount, TCurrency.Get(currencyId))
 {
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Represents an amount of TMoney in a specific currency.
 /// </summary>
 public TMoney(decimal amount, TCurrency currency)
     : this()
 {
     Currency = currency;
     Amount   = amount;
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Represents TMoney with the given currency and amount of 0
 /// </summary>
 /// <param name="currency"></param>
 public TMoney(TCurrency currency)
     : this(0m, currency)
 {
 }
Ejemplo n.º 7
0
 /// <summary>
 /// Represents an amount of TMoney in a specific currency.
 /// </summary>
 public TMoney(CurrencyTypes currencyType)
     : this(0m, TCurrency.Get(currencyType))
 {
 }
Ejemplo n.º 8
0
 /// <summary>
 /// Represents an amount of TMoney in a specific currency.
 /// </summary>
 public TMoney(string amount, String isoCurrencyCode)
     : this(decimal.Parse(amount), TCurrency.Get(isoCurrencyCode))
 {
 }