public static Order ToOrder(jsonOrder _Order) { Order tmpOrder = new Order() { Price = decimal.Parse(_Order.price, System.Globalization.NumberFormatInfo.InvariantInfo), Volume = decimal.Parse(_Order.volume, System.Globalization.NumberFormatInfo.InvariantInfo) }; return(tmpOrder); }
public static jsonOrder FromOrder(Order _Order) { jsonOrder tmpOrder = new jsonOrder() { price = _Order.Price.ToString(System.Globalization.NumberFormatInfo.InvariantInfo), volume = _Order.Volume.ToString(System.Globalization.NumberFormatInfo.InvariantInfo) }; return(tmpOrder); }
public static Order FromJsonOrder(jsonOrder _Order) { return(_Order.ToOrder()); }