Class JsonContainerContract
Contract details for a System.Type used by the JsonSerializer.
Inheritance
System.Object
JsonContainerContract
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Bayat.Json.Serialization
Assembly: Bayat.Json.Runtime.dll
Syntax
public class JsonContainerContract : JsonContract
Constructors
| Improve this Doc View SourceJsonContainerContract(Type)
Initializes a new instance of the JsonContainerContract class.
Declaration
public JsonContainerContract(Type underlyingType)
Parameters
Type | Name | Description |
---|---|---|
System.Type | underlyingType | The underlying type for the contract. |
Properties
| Improve this Doc View SourceFinalItemContract
Declaration
public JsonContract FinalItemContract { get; }
Property Value
Type | Description |
---|---|
JsonContract |
ItemContract
Declaration
public JsonContract ItemContract { get; set; }
Property Value
Type | Description |
---|---|
JsonContract |
ItemConverter
Gets or sets the default collection items JsonConverter.
Declaration
public JsonConverter ItemConverter { get; set; }
Property Value
Type | Description |
---|---|
JsonConverter | The converter. |
ItemIsReference
Gets or sets a value indicating whether the collection items preserve object references.
Declaration
public bool? ItemIsReference { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> |
|
ItemReferenceLoopHandling
Gets or sets the collection item reference loop handling.
Declaration
public ReferenceLoopHandling? ItemReferenceLoopHandling { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<ReferenceLoopHandling> | The reference loop handling. |
ItemTypeNameHandling
Gets or sets the collection item type name handling.
Declaration
public TypeNameHandling? ItemTypeNameHandling { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<TypeNameHandling> | The type name handling. |