FineUICore 11.7
企业级 ASP.NET Core 控件库
载入中...
搜索中...
未找到
FineUICore.CustomDataTableConverter类 参考

https://stackoverflow.com/questions/33499760/how-to-include-column-metadata-in-json-for-an-empty-datatable The DataTableConverter that ships with Json.Net does not output column metadata. The column types are written out as the first row of the array in the JSON when the table is serialized. On deserialization, this metadata is used to reconstruct the table with the correct column types and names, even if there are no other rows. 更多...

继承自 JsonConverter .

Public 成员函数

override bool CanConvert (Type objectType)
 是否可以转换指定的对象类型
 
override void WriteJson (JsonWriter writer, object value, JsonSerializer serializer)
 写入JSON
 
override object ReadJson (JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)
 读取JSON
 

详细描述

https://stackoverflow.com/questions/33499760/how-to-include-column-metadata-in-json-for-an-empty-datatable The DataTableConverter that ships with Json.Net does not output column metadata. The column types are written out as the first row of the array in the JSON when the table is serialized. On deserialization, this metadata is used to reconstruct the table with the correct column types and names, even if there are no other rows.

成员函数说明

◆ CanConvert()

override bool FineUICore.CustomDataTableConverter.CanConvert ( Type  objectType)

是否可以转换指定的对象类型

参数
objectType
返回

◆ ReadJson()

override object FineUICore.CustomDataTableConverter.ReadJson ( JsonReader  reader,
Type  objectType,
object  existingValue,
JsonSerializer  serializer 
)

读取JSON

参数
reader
objectType
existingValue
serializer
返回

◆ WriteJson()

override void FineUICore.CustomDataTableConverter.WriteJson ( JsonWriter  writer,
object  value,
JsonSerializer  serializer 
)

写入JSON

参数
writer
value
serializer

该类的文档由以下文件生成: