DefaultContractResolver Class |
Namespace: Newtonsoft.Json.Serialization
public class DefaultContractResolver : IContractResolver
The DefaultContractResolver type exposes the following members.
| Name | Description | |
|---|---|---|
| DefaultContractResolver |
Initializes a new instance of the DefaultContractResolver class.
|
| Name | Description | |
|---|---|---|
| DefaultMembersSearchFlags | Obsolete.
Gets or sets the default members search flags.
| |
| 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.
| |
| IgnoreIsSpecifiedMembers |
Gets or sets a value indicating whether to ignore IsSpecified members when serializing and deserializing types.
| |
| IgnoreSerializableAttribute |
Gets or sets a value indicating whether to ignore the SerializableAttribute attribute when serializing and deserializing types.
| |
| IgnoreSerializableInterface |
Gets or sets a value indicating whether to ignore the ISerializable interface when serializing and deserializing types.
| |
| IgnoreShouldSerializeMembers |
Gets or sets a value indicating whether to ignore ShouldSerialize members when serializing and deserializing types.
| |
| NamingStrategy |
Gets or sets the naming strategy used to resolve how property names and dictionary keys are serialized.
| |
| SerializeCompilerGeneratedMembers |
Gets or sets a value indicating whether compiler generated members should be serialized.
|
| Name | Description | |
|---|---|---|
| CreateArrayContract |
Creates a JsonArrayContract for the given type.
| |
| CreateConstructorParameters |
Creates the constructor parameters.
| |
| CreateContract |
Determines which contract type is created for the given type.
| |
| CreateDictionaryContract |
Creates a JsonDictionaryContract for the given type.
| |
| CreateDynamicContract |
Creates a JsonDynamicContract for the given type.
| |
| CreateISerializableContract |
Creates a JsonISerializableContract for the given type.
| |
| CreateLinqContract |
Creates a JsonLinqContract for the given type.
| |
| CreateMemberValueProvider |
Creates the IValueProvider used by the serializer to get and set values from a member.
| |
| CreateObjectContract |
Creates a JsonObjectContract for the given type.
| |
| CreatePrimitiveContract |
Creates a JsonPrimitiveContract for the given type.
| |
| CreateProperties |
Creates properties for the given JsonContract.
| |
| CreateProperty |
Creates a JsonProperty for the given MemberInfo.
| |
| CreatePropertyFromConstructorParameter |
Creates a JsonProperty for the given ParameterInfo.
| |
| CreateStringContract |
Creates a JsonStringContract for the given type.
| |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
| GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
| GetResolvedPropertyName |
Gets the resolved name of the property.
| |
| GetSerializableMembers |
Gets the serializable members for the type.
| |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| ResolveContract |
Resolves the contract for a given type.
| |
| ResolveContractConverter |
Resolves the default JsonConverter for the contract.
| |
| ResolveDictionaryKey |
Resolves the key of the dictionary. By default ResolvePropertyName(String) is used to resolve dictionary keys.
| |
| ResolveExtensionDataName |
Resolves the name of the extension data. By default no changes are made to extension data names.
| |
| ResolvePropertyName |
Resolves the name of the property.
| |
| ToString | Returns a string that represents the current object. (Inherited from Object.) |