JsonSerializer

Overview

Serializer implementation that serializes classes to json.

Location

 

constructor    (declared in Object)

Default constructor.

 

constructor

 

JsonSerializer()

 

init()

 

JsonSerializer()

EndList  override virtual

Writes an "end of list".

 

method EndList

 

void EndList()

 

func EndList()

 

void EndList()

EndObject  override virtual

Writes an "end of object".

 

method EndObject

 

void EndObject()

 

func EndObject()

 

void EndObject()

Equals  virtual    (declared in Object)

Returns true if the target object matches this one, by default compares the reference.

 

method Equals(obj: Object): Boolean

 

Boolean Equals(Object obj)

 

func Equals(_ obj: Object) -> Boolean

 

Boolean Equals(Object obj)

Parameters:

  • obj: the reference to compare this with.

Finalize  protected virtual    (declared in Object)

Finalizer implementation. If not overriden it's not called at all, the runtime checks if there is an override before calling a finalizer.

 

method Finalize

 

void Finalize()

 

func Finalize()

 

void 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()

GetType    (declared in Object)

Returns the actual type of this class

 

method GetType: Type

 

Type GetType()

 

func GetType() -> Type

 

Type GetType()

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)

Parameters:

  • a: left value
  • b: right value

SelectProperty (Boolean, PropertyInfo)  override virtual

Triggers a 'select property', to set the name of a next node.

 

method SelectProperty(aFirst: Boolean; aProperty: PropertyInfo)

 

void SelectProperty(Boolean aFirst, PropertyInfo aProperty)

 

func SelectProperty(_ aFirst: Boolean, _ aProperty: PropertyInfo)

 

void SelectProperty(Boolean aFirst, PropertyInfo aProperty)

Parameters:

  • aFirst:
  • aProperty:

SelectProperty (Boolean, String) Android, iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, Ubuntu, UIKit for Mac, watchOS Simulator, watchOS-arm64_32, watchOS-armv7k, WebAssembly, Windows

 

method SelectProperty(aFirst: Boolean; aProperty: String)

 

void SelectProperty(Boolean aFirst, String aProperty)

 

func SelectProperty(_ aFirst: Boolean, _ aProperty: String)

 

void SelectProperty(Boolean aFirst, String aProperty)

Parameters:

  • aFirst:
  • aProperty:

StartList  override virtual

Starts a list value.

 

method StartList

 

void StartList()

 

func StartList()

 

void StartList()

StartListEntry  override virtual

Start an entry for a list op.

 

method StartListEntry(aFirst: Boolean)

 

void StartListEntry(Boolean aFirst)

 

func StartListEntry(_ aFirst: Boolean)

 

void StartListEntry(Boolean aFirst)

Parameters:

  • aFirst:

StartObject  override virtual

Start a new object

 

method StartObject

 

void StartObject()

 

func StartObject()

 

void StartObject()

ToHexString

 

method ToHexString(c: Int64; len: Int32): String

 

String ToHexString(Int64 c, Int32 len)

 

func ToHexString(_ c: Int64, _ len: Int32) -> String

 

String ToHexString(Int64 c, Int32 len)

Parameters:

  • c:
  • len:

ToString  override virtual

Gets the string representation of this method.

 

method ToString: String

 

String ToString()

 

func ToString() -> String

 

String ToString()

Write    (declared in Serializer)

Write the given object.

 

method Write(anObj: Object)

 

void Write(Object anObj)

 

func Write(_ anObj: Object)

 

void Write(Object anObj)

Parameters:

  • anObj:

WriteString

 

method WriteString(Value: String)

 

void WriteString(String Value)

 

func WriteString(_ Value: String)

 

void WriteString(String Value)

Parameters:

  • Value:

WriteValue  override virtual

Writes a value.

 

method WriteValue(aValue: Object)

 

void WriteValue(Object aValue)

 

func WriteValue(_ aValue: Object)

 

void WriteValue(Object aValue)

Parameters:

  • aValue:

 

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)

Parameters:

  • a: left value
  • b: right value

 

constructor    (declared in Object)

Default constructor.

 

constructor

 

JsonSerializer()

 

init()

 

JsonSerializer()

EndList  override virtual

Writes an "end of list".

 

method EndList

 

void EndList()

 

func EndList()

 

void EndList()

EndObject  override virtual

Writes an "end of object".

 

method EndObject

 

void EndObject()

 

func EndObject()

 

void EndObject()

Equals  virtual    (declared in Object)

Returns true if the target object matches this one, by default compares the reference.

 

method Equals(obj: Object): Boolean

 

Boolean Equals(Object obj)

 

func Equals(_ obj: Object) -> Boolean

 

Boolean Equals(Object obj)

Parameters:

  • obj: the reference to compare this with.

Finalize  protected virtual    (declared in Object)

Finalizer implementation. If not overriden it's not called at all, the runtime checks if there is an override before calling a finalizer.

 

method Finalize

 

void Finalize()

 

func Finalize()

 

void 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()

GetType    (declared in Object)

Returns the actual type of this class

 

method GetType: Type

 

Type GetType()

 

func GetType() -> Type

 

Type GetType()

SelectProperty (Boolean, PropertyInfo)  override virtual

Triggers a 'select property', to set the name of a next node.

 

method SelectProperty(aFirst: Boolean; aProperty: PropertyInfo)

 

void SelectProperty(Boolean aFirst, PropertyInfo aProperty)

 

func SelectProperty(_ aFirst: Boolean, _ aProperty: PropertyInfo)

 

void SelectProperty(Boolean aFirst, PropertyInfo aProperty)

Parameters:

  • aFirst:
  • aProperty:

SelectProperty (Boolean, String) Android, iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, Ubuntu, UIKit for Mac, watchOS Simulator, watchOS-arm64_32, watchOS-armv7k, WebAssembly, Windows

 

method SelectProperty(aFirst: Boolean; aProperty: String)

 

void SelectProperty(Boolean aFirst, String aProperty)

 

func SelectProperty(_ aFirst: Boolean, _ aProperty: String)

 

void SelectProperty(Boolean aFirst, String aProperty)

Parameters:

  • aFirst:
  • aProperty:

StartList  override virtual

Starts a list value.

 

method StartList

 

void StartList()

 

func StartList()

 

void StartList()

StartListEntry  override virtual

Start an entry for a list op.

 

method StartListEntry(aFirst: Boolean)

 

void StartListEntry(Boolean aFirst)

 

func StartListEntry(_ aFirst: Boolean)

 

void StartListEntry(Boolean aFirst)

Parameters:

  • aFirst:

StartObject  override virtual

Start a new object

 

method StartObject

 

void StartObject()

 

func StartObject()

 

void StartObject()

ToHexString

 

method ToHexString(c: Int64; len: Int32): String

 

String ToHexString(Int64 c, Int32 len)

 

func ToHexString(_ c: Int64, _ len: Int32) -> String

 

String ToHexString(Int64 c, Int32 len)

Parameters:

  • c:
  • len:

ToString  override virtual

Gets the string representation of this method.

 

method ToString: String

 

String ToString()

 

func ToString() -> String

 

String ToString()

Write    (declared in Serializer)

Write the given object.

 

method Write(anObj: Object)

 

void Write(Object anObj)

 

func Write(_ anObj: Object)

 

void Write(Object anObj)

Parameters:

  • anObj:

WriteString

 

method WriteString(Value: String)

 

void WriteString(String Value)

 

func WriteString(_ Value: String)

 

void WriteString(String Value)

Parameters:

  • Value:

WriteValue  override virtual

Writes a value.

 

method WriteValue(aValue: Object)

 

void WriteValue(Object aValue)

 

func WriteValue(_ aValue: Object)

 

void WriteValue(Object aValue)

Parameters:

  • aValue: