Feature Summary
如读取以下单元格时,可通过ExcelFormat决定读取后转成对应格式的集合或ValueTuple
多种自定义格式:
[ExcelFormat("int_int")]
public int[] BornPos {get; set;} //读取为[]{95,25}
[ExcelFormat("x_y")]
public (int x, int y) BornPos {get; set;} //读取为tuple:(95,25)
甚至支持多维集合:
单元格内容: 95_25|96_26
属性定义:
[ExcelFormat("array2(int)")]
public int[][] BornPos {get; set;} //读取为 {{95,25}, {96,26}}
或 public List<List> BornPos {get; set;} //读取为 {{95,25}, {96,26}}