//-----------------------------以下是用动态泛型读取文件 在 ios 可能会出问题

    /// <summary>
    /// 根据动态泛型来一次性读取 Config
    /// </summary>
    /// <returns></returns>
    public Dictionary <Type, System.Collections.IList> LoadFromFile()
    {
        string[] files = System.IO.Directory.GetFiles(Application.dataPath + "/BuildRes/TableData");

        List <TableInfo> infoList = new List <TableInfo>();

        files.ToList().ForEach(file =>
        {
            string jsonStr = FileOperate.GetTextFromFile(file);

            TableInfo info = new TableInfo();
            var ext        = Path.GetExtension(file);
            if (ext == ".json")
            {
                info.name = Path.GetFileNameWithoutExtension(file);
                info.json = jsonStr;
                infoList.Add(info);
            }
        });

        //return LoadAllData(infoList);
        return(LoadAllDataByField(infoList));
    }