Пример #1
0
 public JsonNode(string input, bool isJson = false)
 {
     if (isJson)
     {
         Type  = EJType.Object;
         value = null;
         using (System.IO.MemoryStream memStream = new System.IO.MemoryStream())
         {
             System.IO.StreamWriter sw = new System.IO.StreamWriter(memStream);
             sw.Write(input);
             sw.Flush();
             memStream.Seek(0, System.IO.SeekOrigin.Begin);
             this.Read(new System.IO.StreamReader(memStream));
         }
     }
     else
     {
         Type  = EJType.String;
         value = (object)input;
     }
 }
Пример #2
0
 public void SetValue(bool val)
 {
     this.value = (object)val;
     this.Type  = EJType.Boolean;
 }
Пример #3
0
 public void SetValue(Dictionary <string, JsonNode> val)
 {
     this.value = (object)val;
     this.Type  = EJType.Object;
 }
Пример #4
0
 public void SetValue(double val)
 {
     this.value = (object)val;
     this.Type  = EJType.Number;
 }
Пример #5
0
 public JsonNode(double input)
 {
     this.Type  = EJType.Number;
     this.value = (object)input;
 }
Пример #6
0
 public JsonNode(bool input)
 {
     Type  = EJType.Boolean;
     value = (object)input;
 }
Пример #7
0
 public void setValue(bool val)
 {
     this.value = (object)val;
     this.Type = EJType.Boolean;
 }
Пример #8
0
 public JsonNode(Dictionary <string, JsonNode> input)
 {
     Type  = EJType.Object;
     value = (object)input;
 }
Пример #9
0
 public void setValue(double val)
 {
     this.value = (object)val;
     this.Type = EJType.Number;
 }
Пример #10
0
 public void setValue(Dictionary<string, JsonNode> val)
 {
     this.value = (object)val;
     this.Type = EJType.Object;
 }
Пример #11
0
 public void setValue(string val)
 {
     this.value = (object)val;
     this.Type = EJType.String;
 }
Пример #12
0
 public void setValue(List<JsonNode> val)
 {
     this.value = (object)val;
     this.Type = EJType.Array;
 }
Пример #13
0
 public JsonNode(bool input)
 {
     this.Type  = EJType.Boolean;
     this.value = (object)input;
 }
Пример #14
0
 public void SetValue()
 {
     this.value = null;
     this.Type  = EJType.Object;
 }
Пример #15
0
 public void setValue()
 {
     this.value = null;
     this.Type = EJType.Object;
 }
Пример #16
0
 public JsonNode()
 {
     Type  = EJType.Object;
     value = null;
 }
Пример #17
0
 public JsonNode(List <JsonNode> input)
 {
     Type  = EJType.Array;
     value = (object)input;
 }
Пример #18
0
 public JsonNode(IEnumerable <JsonNode> input)
 {
     Type  = EJType.Array;
     value = input.ToList();
 }
Пример #19
0
 public void SetValue(List <JsonNode> val)
 {
     this.value = (object)val;
     this.Type  = EJType.Array;
 }
Пример #20
0
 public JsonNode(double input)
 {
     Type  = EJType.Number;
     value = (object)input;
 }
Пример #21
0
 public void SetValue(string val)
 {
     this.value = (object)val;
     this.Type  = EJType.String;
 }
Пример #22
0
 public JsonNode(System.IO.StreamReader input)
 {
     Type  = EJType.Object;
     value = null;
     this.Read(input);
 }
Пример #23
0
 public JsonNode()
 {
     this.Type  = EJType.Object;
     this.value = null;
 }