Constructors
-
Default
Contract Initializes a new instance of the DefaultContractResolver class.Resolver()
Methods
-
Create
Array protectedvirtual Creates a JsonArrayContract for the given type.Contract(Type) -
Create
Constructor protectedvirtual Creates the constructor parameters.Parameters(Constructor Info, Json Property Collection) -
Create
Contract(Type) protectedvirtual Determines which contract type is created for the given type. -
Create
Dictionary protectedvirtual Creates a JsonDictionaryContract for the given type.Contract(Type) -
Create
Dynamic protectedvirtual Creates a JsonDynamicContract for the given type.Contract(Type) -
Create
ISerializable protectedvirtual Creates a JsonISerializableContract for the given type.Contract(Type) -
Create
Linq protectedvirtual Creates a JsonLinqContract for the given type.Contract(Type) -
Create
Member protectedvirtual Creates the IValueProvider used by the serializer to get and set values from a member.Value Provider(Member Info) -
Create
Object protectedvirtual Creates a JsonObjectContract for the given type.Contract(Type) -
Create
Primitive protectedvirtual Creates a JsonPrimitiveContract for the given type.Contract(Type) -
Create
Properties(Type, protectedvirtual Creates properties for the given JsonContract.Member Serialization) -
Create
Property(Member protectedvirtual Creates a JsonProperty for the given MemberInfo.Info, Member Serialization) -
Create
Property protectedvirtual Creates a JsonProperty for the given ParameterInfo.From Constructor Parameter(Json Property, Parameter Info) -
Create
String protectedvirtual Creates a JsonStringContract for the given type.Contract(Type) -
Get
Resolved Gets the resolved name of the property.Property Name(String) -
Get
Serializable protectedvirtual Gets the serializable members for the type.Members(Type) -
Resolve
Contract(Type) virtual Resolves the contract for a given type. -
Resolve
Contract protectedvirtual Resolves the default JsonConverter for the contract.Converter(Type) -
Resolve
Dictionary protectedvirtual Resolves the key of the dictionary. By default ResolvePropertyName(System.String) is used to resolve dictionary keys.Key(String) -
Resolve
Extension protectedvirtual Resolves the name of the extension data. By default no changes are made to extension data names.Data Name(String) -
Resolve
Property protectedvirtual Resolves the name of the property.Name(String)
Properties
-
Default
Members Gets or sets the default members search flags.Search Flags -
Dynamic
Code Gets a value indicating whether members are being get and set using dynamic code generation. This value is determined by the runtime permissions available.Generation -
Ignore
Is Gets or sets a value indicating whether to ignore IsSpecified members when serializing and deserializing types.Specified Members -
Ignore
Serializable Gets or sets a value indicating whether to ignore the SerializableAttribute attribute when serializing and deserializing types.Attribute -
Ignore
Serializable Gets or sets a value indicating whether to ignore the ISerializable interface when serializing and deserializing types.Interface -
Ignore
Should Gets or sets a value indicating whether to ignore ShouldSerialize members when serializing and deserializing types.Serialize Members - Instance static
-
Naming
Strategy Gets or sets the naming strategy used to resolve how property names and dictionary keys are serialized. -
Serialize
Compiler Gets or sets a value indicating whether compiler generated members should be serialized.Generated Members