JConstructor Class

Namespace: Stimulsoft.Base.Json.Linq

Represents a JSON constructor.

Inheritance

Inherits from: JContainer

Constructors

Constructor Description
JConstructor() Initializes a new instance of the JConstructor class.
JConstructor(JConstructor other) Initializes a new instance of the JConstructor class from another JConstructor object.
JConstructor(string name) Initializes a new instance of the JConstructor class with the specified name.
JConstructor(string name, objectcontent ) Initializes a new instance of the JConstructor class with the specified name and content.
JConstructor(string name, object content) Initializes a new instance of the JConstructor class with the specified name and content.

JConstructor()

Initializes a new instance of the JConstructor class.


JConstructor(other: JConstructor)

Initializes a new instance of the JConstructor class from another JConstructor object.

Parameters

  • other (JConstructor) — A JConstructor object to copy from.

JConstructor(name: string)

Initializes a new instance of the JConstructor class with the specified name.

Parameters

  • name (string) — The constructor name.

JConstructor(name: string, **: objectcontent)

Initializes a new instance of the JConstructor class with the specified name and content.

Parameters

  • name (string) — The constructor name.
  • ** (objectcontent)

JConstructor(name: string, content: object)

Initializes a new instance of the JConstructor class with the specified name and content.

Parameters

  • name (string) — The constructor name.
  • content (object) — The contents of the constructor.

Methods

Method Returns Description
Load static JConstructor Loads an JConstructor from a JsonReader.
WriteTo void Writes this token to a JsonWriter.

Method Details

Load static

Load(reader: JsonReader): JConstructor

Loads an JConstructor from a JsonReader.

Parameters

  • reader (JsonReader) — A JsonReader that will be read for the content of the JConstructor.

Returns JConstructor — A JConstructor that contains the JSON that was read from the specified JsonReader.


WriteTo

WriteTo(writer: JsonWriter, **: JsonConverterconverters): void

Writes this token to a JsonWriter.

Parameters

  • writer (JsonWriter) — A JsonWriter into which this method will write.
  • ** (JsonConverterconverters)