JsonDeserializer

Overview

Serializer implementation that deserializes json to classes.

Location

 

constructor  protected    (declared in Deserializer)

 

constructor

 

JsonDeserializer()

 

init()

 

JsonDeserializer()

 

Sub New()

constructor (String)

 

constructor(aInput: String)

 

JsonDeserializer(String aInput)

 

init(_ aInput: String)

 

JsonDeserializer(String aInput)

 

Sub New(aInput As String)

Parameters:

  • aInput:

EndList  override virtual

 

method EndList

 

void EndList()

 

func EndList()

 

void EndList()

 

Sub EndList()

EndObject  override virtual

 

method EndObject

 

void EndObject()

 

func EndObject()

 

void EndObject()

 

Sub EndObject()

Equals  virtual    (declared in Object)

Default constructor.

 

method Equals(aOther: Object): Boolean

 

Boolean Equals(Object aOther)

 

func Equals(_ aOther: Object) -> Boolean

 

Boolean Equals(Object aOther)

 

Function Equals(aOther As Object) As Boolean

Parameters:

  • aOther: the reference to compare this with.

Finalize  protected virtual    (declared in Object)

 

method Finalize

 

void Finalize()

 

func Finalize()

 

void Finalize()

 

Sub Finalize()

GetHashCode  virtual    (declared in Object)

Returns a hashcode for this object. Overriden implementations should make sure that the number returned here is constant given the same object.

 

method GetHashCode: Int32

 

Int32 GetHashCode()

 

func GetHashCode() -> Int32

 

Int32 GetHashCode()

 

Function GetHashCode() As Int32

GetType    (declared in Object)

Returns the actual type of this class

 

method GetType: Type

 

Type GetType()

 

func GetType() -> Type

 

Type GetType()

 

Function GetType() As Type

Read    (declared in Deserializer)

Reads a value of a given type. This is called by Read<T> to read the actual data.

 

method Read(aType: Type; aDT: DeserializerType; aDest: Object): Object

 

Object Read(Type aType, DeserializerType aDT, Object aDest)

 

func Read(_ aType: Type, _ aDT: DeserializerType, _ aDest: Object) -> Object

 

Object Read(Type aType, DeserializerType aDT, Object aDest)

 

Function Read(aType As Type, aDT As DeserializerType, aDest As Object) As Object

Parameters:

  • aType:
  • aDT:
  • aDest:

Read<T>    (declared in Deserializer)

Deserializes a value of type T.

 

method Read<T>: T

 

T Read<T>()

 

func Read<T>() -> T

 

T Read<T>()

 

Function Read<T>() As T

ReaderProvidesNameAndType  override virtual

If true, the reader provides a name and type for a value.

 

property ReaderProvidesNameAndType: Boolean read;

 

Boolean ReaderProvidesNameAndType { get; }

 

var ReaderProvidesNameAndType: Boolean { get{} }

 

Boolean ReaderProvidesNameAndType { __get; }

 

ReadOnly Property ReaderProvidesNameAndType() As Boolean

ReadNext  override virtual

 

method ReadNext(out aName: String; out aType: DeserializerType)

 

void ReadNext(out String aName, out DeserializerType aType)

 

func ReadNext(_ aName: String, _ aType: DeserializerType)

 

void ReadNext(__out String aName, __out DeserializerType aType)

 

Sub ReadNext(<OutAttribute> ByRef aName As String, <OutAttribute> ByRef aType As DeserializerType)

Parameters:

  • aName:
  • aType:

ReadValue  override virtual

Reads a value.

 

method ReadValue: Object

 

Object ReadValue()

 

func ReadValue() -> Object

 

Object ReadValue()

 

Function ReadValue() As Object

ReferenceEquals    (declared in Object)

Compares two references for equivalence (even if they have an equals operator)

 

class method ReferenceEquals(a: Object; b: Object): Boolean

 

static Boolean ReferenceEquals(Object a, Object b)

 

static func ReferenceEquals(_ a: Object, _ b: Object) -> Boolean

 

static Boolean ReferenceEquals(Object a, Object b)

 

Shared Function ReferenceEquals(a As Object, b As Object) As Boolean

Parameters:

  • a: left value
  • b: right value

SelectListElement  override virtual

Called when parsing the start ofa lsit element.

 

method SelectListElement(aIndex: Int32; out aHint: Type): DeserializerType

 

DeserializerType SelectListElement(Int32 aIndex, out Type aHint)

 

func SelectListElement(_ aIndex: Int32, _ aHint: Type) -> DeserializerType

 

DeserializerType SelectListElement(Int32 aIndex, __out Type aHint)

 

Function SelectListElement(aIndex As Int32, <OutAttribute> ByRef aHint As Type) As DeserializerType

Parameters:

  • aIndex:
  • aHint:

SelectProperty  override virtual

Called when parsing the start of a value.

 

method SelectProperty(aProp: PropertyInfo; out aHint: Type): DeserializerType

 

DeserializerType SelectProperty(PropertyInfo aProp, out Type aHint)

 

func SelectProperty(_ aProp: PropertyInfo, _ aHint: Type) -> DeserializerType

 

DeserializerType SelectProperty(PropertyInfo aProp, __out Type aHint)

 

Function SelectProperty(aProp As PropertyInfo, <OutAttribute> ByRef aHint As Type) As DeserializerType

Parameters:

  • aProp:
  • aHint:

 

method Skip

 

void Skip()

 

func Skip()

 

void Skip()

 

Sub Skip()

StartList  override virtual

 

method StartList

 

void StartList()

 

func StartList()

 

void StartList()

 

Sub StartList()

StartObject  override virtual

 

method StartObject

 

void StartObject()

 

func StartObject()

 

void StartObject()

 

Sub StartObject()

ToString  virtual    (declared in Object)

Gets the string representation of this method.

 

method ToString: String

 

String ToString()

 

func ToString() -> String

 

String ToString()

 

Function ToString() As String

 

ReaderProvidesNameAndType  override virtual

If true, the reader provides a name and type for a value.

 

property ReaderProvidesNameAndType: Boolean read;

 

Boolean ReaderProvidesNameAndType { get; }

 

var ReaderProvidesNameAndType: Boolean { get{} }

 

Boolean ReaderProvidesNameAndType { __get; }

 

ReadOnly Property ReaderProvidesNameAndType() As Boolean

 

ReferenceEquals    (declared in Object)

Compares two references for equivalence (even if they have an equals operator)

 

class method ReferenceEquals(a: Object; b: Object): Boolean

 

static Boolean ReferenceEquals(Object a, Object b)

 

static func ReferenceEquals(_ a: Object, _ b: Object) -> Boolean

 

static Boolean ReferenceEquals(Object a, Object b)

 

Shared Function ReferenceEquals(a As Object, b As Object) As Boolean

Parameters:

  • a: left value
  • b: right value

 

constructor  protected    (declared in Deserializer)

 

constructor

 

JsonDeserializer()

 

init()

 

JsonDeserializer()

 

Sub New()

constructor (String)

 

constructor(aInput: String)

 

JsonDeserializer(String aInput)

 

init(_ aInput: String)

 

JsonDeserializer(String aInput)

 

Sub New(aInput As String)

Parameters:

  • aInput:

EndList  override virtual

 

method EndList

 

void EndList()

 

func EndList()

 

void EndList()

 

Sub EndList()

EndObject  override virtual

 

method EndObject

 

void EndObject()

 

func EndObject()

 

void EndObject()

 

Sub EndObject()

Equals  virtual    (declared in Object)

Default constructor.

 

method Equals(aOther: Object): Boolean

 

Boolean Equals(Object aOther)

 

func Equals(_ aOther: Object) -> Boolean

 

Boolean Equals(Object aOther)

 

Function Equals(aOther As Object) As Boolean

Parameters:

  • aOther: the reference to compare this with.

Finalize  protected virtual    (declared in Object)

 

method Finalize

 

void Finalize()

 

func Finalize()

 

void Finalize()

 

Sub Finalize()

GetHashCode  virtual    (declared in Object)

Returns a hashcode for this object. Overriden implementations should make sure that the number returned here is constant given the same object.

 

method GetHashCode: Int32

 

Int32 GetHashCode()

 

func GetHashCode() -> Int32

 

Int32 GetHashCode()

 

Function GetHashCode() As Int32

GetType    (declared in Object)

Returns the actual type of this class

 

method GetType: Type

 

Type GetType()

 

func GetType() -> Type

 

Type GetType()

 

Function GetType() As Type

Read    (declared in Deserializer)

Reads a value of a given type. This is called by Read<T> to read the actual data.

 

method Read(aType: Type; aDT: DeserializerType; aDest: Object): Object

 

Object Read(Type aType, DeserializerType aDT, Object aDest)

 

func Read(_ aType: Type, _ aDT: DeserializerType, _ aDest: Object) -> Object

 

Object Read(Type aType, DeserializerType aDT, Object aDest)

 

Function Read(aType As Type, aDT As DeserializerType, aDest As Object) As Object

Parameters:

  • aType:
  • aDT:
  • aDest:

Read<T>    (declared in Deserializer)

Deserializes a value of type T.

 

method Read<T>: T

 

T Read<T>()

 

func Read<T>() -> T

 

T Read<T>()

 

Function Read<T>() As T

ReadNext  override virtual

 

method ReadNext(out aName: String; out aType: DeserializerType)

 

void ReadNext(out String aName, out DeserializerType aType)

 

func ReadNext(_ aName: String, _ aType: DeserializerType)

 

void ReadNext(__out String aName, __out DeserializerType aType)

 

Sub ReadNext(<OutAttribute> ByRef aName As String, <OutAttribute> ByRef aType As DeserializerType)

Parameters:

  • aName:
  • aType:

ReadValue  override virtual

Reads a value.

 

method ReadValue: Object

 

Object ReadValue()

 

func ReadValue() -> Object

 

Object ReadValue()

 

Function ReadValue() As Object

SelectListElement  override virtual

Called when parsing the start ofa lsit element.

 

method SelectListElement(aIndex: Int32; out aHint: Type): DeserializerType

 

DeserializerType SelectListElement(Int32 aIndex, out Type aHint)

 

func SelectListElement(_ aIndex: Int32, _ aHint: Type) -> DeserializerType

 

DeserializerType SelectListElement(Int32 aIndex, __out Type aHint)

 

Function SelectListElement(aIndex As Int32, <OutAttribute> ByRef aHint As Type) As DeserializerType

Parameters:

  • aIndex:
  • aHint:

SelectProperty  override virtual

Called when parsing the start of a value.

 

method SelectProperty(aProp: PropertyInfo; out aHint: Type): DeserializerType

 

DeserializerType SelectProperty(PropertyInfo aProp, out Type aHint)

 

func SelectProperty(_ aProp: PropertyInfo, _ aHint: Type) -> DeserializerType

 

DeserializerType SelectProperty(PropertyInfo aProp, __out Type aHint)

 

Function SelectProperty(aProp As PropertyInfo, <OutAttribute> ByRef aHint As Type) As DeserializerType

Parameters:

  • aProp:
  • aHint:

 

method Skip

 

void Skip()

 

func Skip()

 

void Skip()

 

Sub Skip()

StartList  override virtual

 

method StartList

 

void StartList()

 

func StartList()

 

void StartList()

 

Sub StartList()

StartObject  override virtual

 

method StartObject

 

void StartObject()

 

func StartObject()

 

void StartObject()

 

Sub StartObject()

ToString  virtual    (declared in Object)

Gets the string representation of this method.

 

method ToString: String

 

String ToString()

 

func ToString() -> String

 

String ToString()

 

Function ToString() As String