Class JsonObjectContract
- Namespace
- Newtonsoft.Json.Serialization
- Assembly
- Newtonsoft.Json.dll
Contract details for a Type used by the JsonSerializer.
public class JsonObjectContract : JsonContract
- Inheritance
-
JsonObjectContract
- Inherited Members
Constructors
JsonObjectContract(Type)
Initializes a new instance of the JsonObjectContract class.
public JsonObjectContract(Type underlyingType)
Parameters
underlyingType
TypeThe underlying type for the contract.
Properties
ConstructorParameters
Gets the constructor parameters required for any non-default constructor
public JsonPropertyCollection ConstructorParameters { get; }
Property Value
MemberSerialization
Gets or sets the object member serialization.
public MemberSerialization MemberSerialization { get; set; }
Property Value
- MemberSerialization
The member object serialization.
OverrideConstructor
Gets or sets the override constructor used to create the object. This is set when a constructor is marked up using the JsonConstructor attribute.
public ConstructorInfo OverrideConstructor { get; set; }
Property Value
- ConstructorInfo
The override constructor.
ParametrizedConstructor
Gets or sets the parametrized constructor used to create the object.
public ConstructorInfo ParametrizedConstructor { get; set; }
Property Value
- ConstructorInfo
The parametrized constructor.
Properties
Gets the object's properties.
public JsonPropertyCollection Properties { get; }
Property Value
- JsonPropertyCollection
The object's properties.