JsonContractResolver 类 |
Senparc.Weixin SDK 官方教程《微信开发深度解析》已出版,支持中国开源事业,请【购买正版】!
《微信公众号+小程序》视频课程已经上线,【点击这里】学习!
NeuChar(纽插)已经上线,为开发者提供一站式跨平台管理枢纽,并可将应用入驻到 NeuChar 应用商店!新功能正在不断增加中,快来使用吧! https://www.neuchar.com
在线动态微信接口 Swagger WebApi 文档: https://weixin.senparc.com:8039
命名空间: Senparc.CO2NET.Helpers.Serializers
JsonContractResolver 类型公开以下成员。
名称 | 说明 | |
---|---|---|
![]() | JsonContractResolver |
JSON 输出设置 构造函数 优先级: ignoreNulls < propertiesToIgnoreNull < typesToIgnoreNull
|
名称 | 说明 | |
---|---|---|
![]() | DefaultMembersSearchFlags |
已过时。
Gets or sets the default members search flags.
(继承自 DefaultContractResolver。) |
![]() | DynamicCodeGeneration |
Gets a value indicating whether members are being get and set using dynamic code generation.
This value is determined by the runtime permissions available.
(继承自 DefaultContractResolver。) |
![]() | IgnoreIsSpecifiedMembers |
Gets or sets a value indicating whether to ignore IsSpecified members when serializing and deserializing types.
(继承自 DefaultContractResolver。) |
![]() | IgnoreSerializableAttribute |
Gets or sets a value indicating whether to ignore the SerializableAttribute attribute when serializing and deserializing types.
(继承自 DefaultContractResolver。) |
![]() | IgnoreSerializableInterface |
Gets or sets a value indicating whether to ignore the ISerializable interface when serializing and deserializing types.
(继承自 DefaultContractResolver。) |
![]() | IgnoreShouldSerializeMembers |
Gets or sets a value indicating whether to ignore ShouldSerialize members when serializing and deserializing types.
(继承自 DefaultContractResolver。) |
![]() | NamingStrategy |
Gets or sets the naming strategy used to resolve how property names and dictionary keys are serialized.
(继承自 DefaultContractResolver。) |
![]() | PropertiesToIgnoreNull |
需要特殊忽略null值的属性名称
|
![]() | SerializeCompilerGeneratedMembers |
Gets or sets a value indicating whether compiler generated members should be serialized.
(继承自 DefaultContractResolver。) |
![]() | TypesToIgnoreNull |
指定类型(Class,非Interface)下的为null属性不生成到Json中
|
名称 | 说明 | |
---|---|---|
![]() | CreateArrayContract |
Creates a JsonArrayContract for the given type.
(继承自 DefaultContractResolver。) |
![]() | CreateConstructorParameters |
Creates the constructor parameters.
(继承自 DefaultContractResolver。) |
![]() | CreateContract | (重写 DefaultContractResolver.CreateContract(Type).) |
![]() | CreateDictionaryContract |
Creates a JsonDictionaryContract for the given type.
(继承自 DefaultContractResolver。) |
![]() | CreateDynamicContract |
Creates a JsonDynamicContract for the given type.
(继承自 DefaultContractResolver。) |
![]() | CreateISerializableContract |
Creates a JsonISerializableContract for the given type.
(继承自 DefaultContractResolver。) |
![]() | CreateLinqContract |
Creates a JsonLinqContract for the given type.
(继承自 DefaultContractResolver。) |
![]() | CreateMemberValueProvider |
Creates the IValueProvider used by the serializer to get and set values from a member.
(继承自 DefaultContractResolver。) |
![]() | CreateObjectContract |
Creates a JsonObjectContract for the given type.
(继承自 DefaultContractResolver。) |
![]() | CreatePrimitiveContract |
Creates a JsonPrimitiveContract for the given type.
(继承自 DefaultContractResolver。) |
![]() | CreateProperties | (重写 DefaultContractResolver.CreateProperties(Type, MemberSerialization).) |
![]() | CreateProperty | (重写 DefaultContractResolver.CreateProperty(MemberInfo, MemberSerialization).) |
![]() | CreatePropertyFromConstructorParameter |
Creates a JsonProperty for the given ParameterInfo.
(继承自 DefaultContractResolver。) |
![]() | CreateStringContract |
Creates a JsonStringContract for the given type.
(继承自 DefaultContractResolver。) |
![]() | GetNameTable | (继承自 DefaultContractResolver。) |
![]() | GetResolvedPropertyName |
Gets the resolved name of the property.
(继承自 DefaultContractResolver。) |
![]() | GetSerializableMembers |
Gets the serializable members for the type.
(继承自 DefaultContractResolver。) |
![]() | ResolveContract |
Resolves the contract for a given type.
(继承自 DefaultContractResolver。) |
![]() | ResolveContractConverter |
Resolves the default JsonConverter for the contract.
(继承自 DefaultContractResolver。) |
![]() | ResolveDictionaryKey |
Resolves the key of the dictionary. By default ResolvePropertyName(String) is used to resolve dictionary keys.
(继承自 DefaultContractResolver。) |
![]() | ResolveExtensionDataName |
Resolves the name of the extension data. By default no changes are made to extension data names.
(继承自 DefaultContractResolver。) |
![]() | ResolvePropertyName |
Resolves the name of the property.
(继承自 DefaultContractResolver。) |
名称 | 说明 | |
---|---|---|
![]() | Serialize |
序列化对象
(由 StackExchangeRedisExtensions 定义。) |
![]() | ToHashEntries |
Serialize in Redis format
(由 RedisUtils 定义。) |
![]() | ToJson |
把数据转换为Json格式(使用Newtonsoft.Json.dll)
(由 ObjectExtensions 定义。) |