DefaultContractResolver
Gets a value indicating whether members are being get and set using dynamic code generation.
This value is determined by the runtime permissions available.
Gets or sets a value indicating whether to ignore IsSpecified members when serializing and deserializing types.
Gets or sets a value indicating whether to ignore ShouldSerialize members when serializing and deserializing types.
Gets or sets the naming strategy used to resolve how property names and dictionary keys are serialized.
Gets or sets a value indicating whether compiler generated members should be serialized.
public DefaultContractResolver()
Initializes a new instance of the DefaultContractResolver class.
Creates a JsonArrayContract for the given type.
protected virtual IList<JsonProperty> CreateConstructorParameters(ConstructorInfo constructor, JsonPropertyCollection memberProperties)
Creates the constructor parameters.
Determines which contract type is created for the given type.
Creates a JsonDictionaryContract for the given type.
Creates a JsonDynamicContract for the given type.
Creates a JsonLinqContract for the given type.
Creates the IValueProvider used by the serializer to get and set values from a member.
Creates a JsonObjectContract for the given type.
Creates a JsonPrimitiveContract for the given type.
protected virtual IList<JsonProperty> CreateProperties(Type type, MemberSerialization memberSerialization)
Creates properties for the given JsonContract.
protected virtual JsonProperty CreateProperty(MemberInfo member, MemberSerialization memberSerialization)
Creates a JsonProperty for the given MemberInfo.
protected virtual JsonProperty CreatePropertyFromConstructorParameter(JsonProperty matchingMemberProperty, ParameterInfo parameterInfo)
Creates a JsonProperty for the given ParameterInfo.
Creates a JsonStringContract for the given type.
Gets the resolved name of the property.
Gets the serializable members for the type.
Resolves the contract for a given type.
Resolves the default JsonConverter for the contract.
Resolves the key of the dictionary. By default ResolvePropertyName is used to resolve dictionary keys.
Resolves the name of the extension data. By default no changes are made to extension data names.
Resolves the name of the property.