Exemplo n.º 1
0
 public TMoney()
 {
     Amount   = 0m;
     Currency = new TCurrency
     {
         CurrencyId   = 0,
         CurrencyCode = "NA",
         Symbol       = ""
     };
 }
Exemplo 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))
 {
 }
Exemplo 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))
 {
 }
Exemplo 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))
 {
 }
Exemplo 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;
 }
Exemplo 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)
 {
 }
Exemplo n.º 7
0
 /// <summary>
 /// Represents an amount of TMoney in a specific currency.
 /// </summary>
 public TMoney(CurrencyTypes currencyType)
     : this(0m, TCurrency.Get(currencyType))
 {
 }
Exemplo 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))
 {
 }