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.​JsonPrimitiveContract
Assembly: Newtonsoft.Json
Inheritance: object → JsonContract → JsonPrimitiveContract
Contract details for a <see cref="T:System.Type" /> used by the <see cref="T:Newtonsoft.Json.JsonSerializer" /> .
Properties
public
System.​Type
UnderlyingType
Gets the underlying type for the contract.
public
System.​Type
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.
public
System.​Collections.​Generic.​IList<​SerializationCallback>
OnDeserializedCallbacks
Gets or sets all methods called immediately after deserialization of the object.
public
System.​Collections.​Generic.​IList<​SerializationCallback>
OnDeserializingCallbacks
Gets or sets all methods called during deserialization of the object.
public
System.​Collections.​Generic.​IList<​SerializationCallback>
OnSerializedCallbacks
Gets or sets all methods called after serialization of the object graph.
public
System.​Collections.​Generic.​IList<​SerializationCallback>
OnSerializingCallbacks
Gets or sets all methods called before serialization of the object.
public
System.​Collections.​Generic.​IList<​SerializationErrorCallback>
OnErrorCallbacks
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
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object