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.
更多...
|
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 | ) |
|
◆ 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 ) |
该类的文档由以下文件生成:
- CustomDataTableConverter.cs