/// <summary> /// 输出对应数据表 /// </summary> /// <param name="_filePath"></param> /// <param name="_prePathIndex"></param> public void OutputConfig(string _filePath, int _prePathIndex) { prePathIndex = _prePathIndex; List <State> stateList = GetAllStateList(); CSVHelper <State> stateCsv = new CSVHelper <State>(); stateCsv.onPropCallBack = OnPropCallBack; stateCsv.onValueCallBack = OnValueCallBack; stateCsv.CreateFile(_filePath); stateCsv.SaveDataToCSVFile(stateList, _filePath); }