DefaultContractResolver Class

Json.NET

Json.NET - Quick Starts & API Documentation DefaultContractResolver Class
NamespacesNewtonsoft.Json.SerializationDefaultContractResolver
Used by JsonSerializer to resolves a JsonContract for a given Type.
Declaration Syntax
C# Visual Basic Visual C++
public class DefaultContractResolver : IContractResolver
Public Class DefaultContractResolver _
	Implements IContractResolver
public ref class DefaultContractResolver : IContractResolver
Members
All Members Constructors Methods Properties



Icon Member Description
DefaultContractResolver()()()()
Initializes a new instance of the DefaultContractResolver class.

DefaultContractResolver(Boolean)
Initializes a new instance of the DefaultContractResolver class.

CreateArrayContract(Type)
Creates a JsonArrayContract for the given type.

CreateContract(Type)
Determines which contract type is created for the given type.

CreateDictionaryContract(Type)
Creates a JsonDictionaryContract for the given type.

CreateDynamicContract(Type)
Creates a JsonDynamicContract for the given type.

CreateISerializableContract(Type)
Creates a JsonISerializableContract for the given type.

CreateLinqContract(Type)
Creates a JsonLinqContract for the given type.

CreateMemberValueProvider(MemberInfo)
Creates the IValueProvider used by the serializer to get and set values from a member.

CreateObjectContract(Type)
Creates a JsonObjectContract for the given type.

CreatePrimitiveContract(Type)
Creates a JsonPrimitiveContract for the given type.

CreateProperties(Type, MemberSerialization)
Creates properties for the given JsonContract.

CreateProperty(MemberInfo, MemberSerialization)
Creates a JsonProperty for the given MemberInfo.

CreateStringContract(Type)
Creates a JsonStringContract for the given type.

DefaultMembersSearchFlags
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.

Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Finalize()()()()
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
GetHashCode()()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetSerializableMembers(Type)
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(Type)
Resolves the contract for a given type.

ResolveContractConverter(Type)
Resolves the default JsonConverter for the contract.

ResolvePropertyName(String)
Resolves the name of the property.

SerializeCompilerGeneratedMembers
Gets or sets a value indicating whether compiler generated members should be serialized.

ToString()()()()
Returns a String that represents the current Object.
(Inherited from Object.)
Inheritance Hierarchy
Object
DefaultContractResolver
  CamelCasePropertyNamesContractResolver

Assembly: Newtonsoft.Json (Module: Newtonsoft.Json) Version: 4.0.2.0 (4.0.2.13623)