Skip to content

September 26, 2018

json

[C#]Attribute + TypeConverter 实现 Excel To Json

最近在项目上需要实现一个把Excel的内容转成 Json的功能,使用了 Attribute + TypeConverter,Attribute 用于标记列与属性的对应关系,TypeConverter 用于处理特殊数据结构,易于维护,方便扩展