public string ToJson() { return("{\"Time\":" + new JavaScriptSerializer().Serialize(Time) + ",\"Id\":\"" + Id.ToString() + "\",\"Security\":\"" + Security.ToString() + "\",\"BuyId\":\"" + BuyId.ToString() + "\",\"SellId\":\"" + SellId.ToString() + "\",\"Quantity\":" + Quantity.ToString() + ",\"BuyPrice\":" + BuyPrice.ToString() + ",\"SellPrice\":" + SellPrice.ToString() + "}"); }
public override string ToString() { return(SellId.ToString()); }