public virtual void Load(Dictionary <string, int> dictionary) { foreach (var pair in dictionary) { var type = CurrencyCode.To(pair.Key); var element = Find(type); element.Value = pair.Value; } }
public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) { var type = CurrencyCode.To(reader.Value as string); return(type); }
public Currency(string typeCode, int value) : this(CurrencyCode.To(typeCode), value) { }
public ElementData(string typeCode, long value) : this(CurrencyCode.To(typeCode), value) { }
public virtual void Perform(ItemTemplate item) { var currencyCode = CurrencyCode.From(item.Price.Type); Perform(item, currencyCode); }