Exemple #1
0
 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() +
            "}");
 }
Exemple #2
0
 public override string ToString()
 {
     return(SellId.ToString());
 }