public static string ToString(BtceCurrency v) { if (v == BtceCurrency.Btc) { return("BTC"); } if (v == BtceCurrency.Usd) { return("USD"); } if (v == BtceCurrency.Ltc) { return("LTC"); } if (v == BtceCurrency.Nmc) { return("NMC"); } if (v == BtceCurrency.Rur) { return("RUR"); } throw new NotSupportedException(); }
public static BtceCurrency FromString(string s) { BtceCurrency ret = BtceCurrency.Unknown; Enum.TryParse <BtceCurrency>(s.ToLower(), out ret); return(ret); }
public static string ToString(BtceCurrency v) { if (v == BtceCurrency.Btc) return "BTC"; if (v == BtceCurrency.Usd) return "USD"; if (v == BtceCurrency.Ltc) return "LTC"; if (v == BtceCurrency.Nmc) return "NMC"; if (v == BtceCurrency.Rur) return "RUR"; throw new NotSupportedException(); }
public decimal GetFund(BtceCurrency cur) { return(GetFund(cur.ToString())); }
public decimal GetFund(BtceCurrency cur) { return (GetFund(cur.ToString())); }
public decimal this[BtceCurrency btcCurrency] { get {return GetFund(btcCurrency); } }
public static string ToString(BtceCurrency v) { return Enum.GetName(typeof(BtceCurrency), v); }
public static string ToString(BtceCurrency v) { if (v == BtceCurrency.Btc) return "BTC"; if (v == BtceCurrency.Usd) return "USD"; if (v == BtceCurrency.Ltc) return "LTC"; if (v == BtceCurrency.Nmc) return "NMC"; if (v == BtceCurrency.Rur) return "RUR"; if (v == BtceCurrency.Eur) return "EUR"; if (v == BtceCurrency.Nvc) return "NVC"; if (v == BtceCurrency.Trc) return "TRC"; if (v == BtceCurrency.Ppc) return "PPC"; if (v == BtceCurrency.Ftc) return "FTC"; if (v == BtceCurrency.Cnc) return "CNC"; throw new NotSupportedException(); }
public static string ToString(BtceCurrency v) { return(Enum.GetName(typeof(BtceCurrency), v)); }