Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

class Newtonsoft.​Json.​Serialization.​JsonDictionaryContract

Assembly: Newtonsoft.Json

Inheritance: object → JsonContractJsonContainerContract → JsonDictionaryContract

Contract details for a <see cref="T:System.Type" /> used by the <see cref="T:Newtonsoft.Json.JsonSerializer" /> .

Properties

public System.​Func<​string, string>
DictionaryKeyResolver
Gets or sets the dictionary key resolver.
DictionaryKeyType
Gets the <see cref="T:System.Type" /> of the dictionary keys.
DictionaryValueType
Gets the <see cref="T:System.Type" /> of the dictionary values.
public ObjectConstructor<​object>
OverrideCreator
Gets or sets the function used to create the object. When set this function will override <see cref="P:Newtonsoft.Json.Serialization.JsonContract.DefaultCreator" /> .
public bool
HasParameterizedCreator
Gets a value indicating whether the creator has a parameter with the dictionary values.
public JsonConverter
ItemConverter
Gets or sets the default collection items <see cref="T:Newtonsoft.Json.JsonConverter" /> .
public bool?
ItemIsReference
Gets or sets a value indicating whether the collection items preserve object references.
ItemReferenceLoopHandling
Gets or sets the collection item reference loop handling.
ItemTypeNameHandling
Gets or sets the collection item type name handling.
UnderlyingType
Gets the underlying type for the contract.
CreatedType
Gets or sets the type created during deserialization.
public bool?
IsReference
Gets or sets whether this type contract is serialized as a reference.
public JsonConverter
Converter
Gets or sets the default <see cref="T:Newtonsoft.Json.JsonConverter" /> for this contract.
Gets or sets all methods called immediately after deserialization of the object.
Gets or sets all methods called during deserialization of the object.
Gets or sets all methods called after serialization of the object graph.
Gets or sets all methods called before serialization of the object.
Gets or sets all method called when an error is thrown during the serialization of the object.
public System.​Func<​object>
DefaultCreator
Gets or sets the default creator method used to create the object.
public bool
DefaultCreatorNonPublic
Gets or sets a value indicating whether the default creator is non-public.

Methods

public bool
Equals​(object obj)
Inherited from object
protected void
Finalize​()
Inherited from object
public int
GetHashCode​()
Inherited from object
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object
public string
ToString​()
Inherited from object