コード例 #1
0
        public Money ToCurrency(string isocode)
        {
            Currency newc = MoneyString.FromString(isocode);
            Money    m    = new Money(this.Amount * CrossRate(newc, this.Currency), newc);

            return(m);
        }
コード例 #2
0
        static NinjaTrader.Cbi.Currency LocalCurrency()
        {
            RegionInfo regionInfo = new RegionInfo(CultureInfo.CurrentCulture.LCID);

            return(MoneyString.FromString(regionInfo.ISOCurrencySymbol));
        }
コード例 #3
0
 public Money(decimal amount, string isoCurrencySymbol) : this(amount, MoneyString.FromString(isoCurrencySymbol))
 {
 }
コード例 #4
0
 public Money(string isoCurrencySymbol) : this(MoneyString.FromString(isoCurrencySymbol))
 {
 }