C# Class Newtonsoft.Json.Linq.JConstructor

Represents a JSON constructor.
Inheritance: JContainer
Show file Open project: runegri/Applicable Class Usage Examples

Public Methods

Method Description
JConstructor ( ) : System

Initializes a new instance of the JConstructor class.

JConstructor ( JConstructor other ) : System

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

JConstructor ( string name ) : System

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

JConstructor ( string name, object content ) : System

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

Load ( JsonReader reader ) : JConstructor

Loads an JConstructor from a JsonReader.

WriteTo ( JsonWriter writer ) : void

Writes this token to a JsonWriter.

this ( object key ) : JToken

Gets the JToken with the specified key.

Private Methods

Method Description
CloneToken ( ) : JToken
DeepEquals ( JToken node ) : bool
GetDeepHashCode ( ) : int

Method Details

JConstructor() public method

Initializes a new instance of the JConstructor class.
public JConstructor ( ) : System
return System

JConstructor() public method

Initializes a new instance of the JConstructor class from another JConstructor object.
public JConstructor ( JConstructor other ) : System
other JConstructor A object to copy from.
return System

JConstructor() public method

Initializes a new instance of the JConstructor class with the specified name and content.
public JConstructor ( string name ) : System
name string The constructor name.
return System

JConstructor() public method

Initializes a new instance of the JConstructor class with the specified name and content.
public JConstructor ( string name, object content ) : System
name string The constructor name.
content object The contents of the constructor.
return System

Load() public static method

Loads an JConstructor from a JsonReader.
public static Load ( JsonReader reader ) : JConstructor
reader JsonReader A that will be read for the content of the .
return JConstructor

WriteTo() public method

Writes this token to a JsonWriter.
public WriteTo ( JsonWriter writer ) : void
writer JsonWriter A into which this method will write.
return void

this() public method

Gets the JToken with the specified key.
public this ( object key ) : JToken
key object
return JToken