Show / Hide Table of Contents

Class DeserializationContext

Encapsulates all data required to deserialize an object from JSON.

Inheritance
System.Object
SerializationContextBase
DeserializationContext
Inherited Members
SerializationContextBase.InferredType
SerializationContextBase.RequestedType
SerializationContextBase.CurrentLocation
SerializationContextBase.RootSerializer
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: Manatee.Json.Serialization
Assembly: Manatee.Json.dll
Syntax
public class DeserializationContext : SerializationContextBase

Properties

| Improve this Doc View Source

JsonRoot

The root of the JSON instance.

Declaration
public JsonValue JsonRoot { get; }
Property Value
Type Description
JsonValue
| Improve this Doc View Source

LocalValue

The current value in the JSON instance for deserialization.

Declaration
public JsonValue LocalValue { get; }
Property Value
Type Description
JsonValue
| Improve this Doc View Source

ValueMap

A mapping of the deserialized values to the type's property information.

Declaration
public Dictionary<SerializationInfo, object? > ValueMap { get; set; }
Property Value
Type Description
System.Collections.Generic.Dictionary<SerializationInfo, System.Nullable<System.Object>>

Methods

| Improve this Doc View Source

Pop()

Pops details from the context to keep the context in sync with the deserialization process.

Declaration
public void Pop()
| Improve this Doc View Source

Push(Type, String, JsonValue)

Pushes new details onto the context to allow for recursive serialization.

Declaration
public void Push(Type type, string propertyName, JsonValue localValue)
Parameters
Type Name Description
System.Type type

The type to be deserialized.

System.String propertyName

The property name or index. Will be appended to the location as a JSON Path segment.

JsonValue localValue

The local JSON value being deserialized.

  • Improve this Doc
  • View Source
Back to top Generated by DocFX