NatashaComponentRegister.RegistDomain<NatashaAssemblyDomain>();
NatashaComponentRegister.RegistCompiler<NatashaCSharpCompiler>();
NatashaComponentRegister.RegistSyntax<NatashaCSharpSyntax>();
var dict = new Dictionary<string, string> {
{ "名字","Name"},
{ "年龄","Age"},
{ "性别","Sex"},
{ "描述","Description"}
};
//忽略 “描述” 字段
ExcelOperator.SetWritterMapping<Student>(dict, "描述");
ExcelOperator.SetReaderMapping<Student>(dict);
//写
ExcelOperator.WriteToFile("1.xlsx", students);
//读
var list = ExcelOperator.FileToEntities<Student>("1.xlsx");