DefaultContractResolver
Gets or sets the default members search flags.
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 the SerializableAttribute attribute when serializing and deserializing types.
Gets or sets a value indicating whether to ignore the ISerializable interface when serializing and deserializing types.
Gets or sets a value indicating whether compiler generated members should be serialized.
public DefaultContractResolver()
Initializes a new instance of the DefaultContractResolver class.
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 JsonISerializableContract 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.