예제 #1
0
    public static List <KLine> GetAListFormJContainer(JContainer jcontainer)
    {
        List <KLine> result = new List <KLine>();
        JToken       temp   = jcontainer.First;

        while (temp != null)
        {
            Dictionary <string, string> content = temp.ToObject <Dictionary <string, string> >();
            KLine line = new KLine();
            line.SetData(content);
            result.Add(line);
            temp = temp.Next;
        }
        return(result);
    }