点击或拖拽改变大小

JsonSerializerOption 类

序列化全局配置器 Serializer global configuration's options
继承层次
SystemObject
  CPF.Windows.JsonJsonSerializerOption

命名空间:  CPF.Windows.Json
程序集:  CPF.Windows (在 CPF.Windows.dll 中) 版本:0.8.8.5
语法
C#
public class JsonSerializerOption

JsonSerializerOption 类型公开以下成员。

构造函数
  名称说明
公共方法JsonSerializerOption
初始化 JsonSerializerOption 类的一个新实例
Top
方法
  名称说明
公共方法Equals (继承自 Object。)
受保护的方法Finalize (继承自 Object。)
公共方法GetHashCode (继承自 Object。)
公共方法GetType (继承自 Object。)
受保护的方法MemberwiseClone (继承自 Object。)
公共方法ToString (继承自 Object。)
Top
字段
  名称说明
公共字段DatetimeFormat
Datetime格式化枚举,默认ISO8601 Datetime formatted enumeration, default ISO8601
公共字段GlobalKeyFormat
对Model的全局Key格式化器 Global Key formatter for Model
公共字段GlobalValueFormat
对Model的全局Value格式化器 Global Value Formatter for Model
公共字段IgnoreKeys
对Model中要忽略写入的Key Key to ignore writing in Model
公共字段IsByteArrayFormatBase64
byte[]数组是否按照base64格式来序列化, true -> base64 , false -> array Is the byte [] array serialized in Base64 format
公共字段IsEnumNum
枚举是否被序列化为数字,true -> 数字, false -> 字符 Enumeration is serialized into numbers, true - > numbers, false - > characters
公共字段IsIgnoreValueNull
是否忽略Model中原本值为null的对象(不包括由忽略互引用导致的null) Whether to ignore null objects in Model (excluding null caused by ignoring mutual references)
公共字段JsonCharacterRead
对Model中的Key的首字母写入状态:默认,大写,小写 Write the first letter of Key in Model: default, capitalization, lowercase
公共字段ReferenceLoopHandling
对实例因互相引用而导致的无限循环的情况的处理 Handling of infinite loops caused by cross-references of instances
公共字段TimespanFormat
Timespan格式化枚举,默认ISO8601 Timespan formatted enumeration, default ISO8601
Top
扩展方法
  名称说明
公共扩展器方法ConvertTo
类型转换
(由 ObjectExtenstions 定义。)
公共扩展器方法Delay
延迟操作
(由 ObjectExtenstions 定义。)
公共扩展器方法Equal
对象是否相等
(由 ObjectExtenstions 定义。)
公共扩展器方法GetCreationCode (由 ObjectExtenstions 定义。)
公共扩展器方法GetPropretyValue
获取对象属性值
(由 ObjectExtenstions 定义。)
公共扩展器方法GetValue
快速动态获取对象的属性值
(由 FastReflectionExtensions 定义。)
公共扩展器方法Invoke
快速动态调用对象的方法
(由 FastReflectionExtensions 定义。)
公共扩展器方法SetPropretyValue
设置属性值
(由 ObjectExtenstions 定义。)
公共扩展器方法SetValue
快速动态设置对象的属性值
(由 FastReflectionExtensions 定义。)
Top
参见