Example #1
0
    public static void DecodeTable(string str)
    {
        Configs.Clear();
        str = StringUtils.Replace(str, '\r', '\n');
        str = StringUtils.Replace(str, "\n\n", '\n');
        List <List <string> > list = CSV.Parse(str);

        for (int i = 2, len = list.Count; i < len; i++)
        {
            ModelConfig item = new ModelConfig();
            item.Decode(list[i]);
            Configs.Add(item);
        }
    }