点击或拖拽改变大小
盛派网络

JsonContractResolver 类

Senparc.Weixin SDK 官方教程《微信开发深度解析》已出版,支持中国开源事业,请【购买正版】
《微信公众号+小程序》视频课程已经上线,【点击这里】学习!

NeuChar(纽插)已经上线,为开发者提供一站式跨平台管理枢纽,并可将应用入驻到 NeuChar 应用商店!新功能正在不断增加中,快来使用吧! https://www.neuchar.com
在线动态微信接口 Swagger WebApi 文档: https://weixin.senparc.com:8039

继承层次
SystemObject
  DefaultContractResolver
    Senparc.CO2NET.Helpers.SerializersJsonContractResolver

命名空间:  Senparc.CO2NET.Helpers.Serializers
程序集:  Senparc.CO2NET (在 Senparc.CO2NET.dll 中) 版本:1.4.300-preview.3.21201.4.100+9de96adf02982fcbddc436d3680e19a719e9d8b2
语法
public class JsonContractResolver : DefaultContractResolver

JsonContractResolver 类型公开以下成员。

构造函数
  名称说明
公共方法JsonContractResolver
JSON 输出设置 构造函数 优先级: ignoreNulls < propertiesToIgnoreNull < typesToIgnoreNull
Top
属性
  名称说明
公共属性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中
Top
方法
  名称说明
受保护的方法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。)
Top
扩展方法
  名称说明
公共扩展器方法Serialize
序列化对象
(由 StackExchangeRedisExtensions 定义。)
公共扩展器方法ToHashEntries
Serialize in Redis format
(由 RedisUtils 定义。)
公共扩展器方法ToJson
把数据转换为Json格式(使用Newtonsoft.Json.dll)
(由 ObjectExtensions 定义。)
Top
参见