Ejemplo n.º 1
0
 internal override void write(JsonWriter writer)
 {
     writer.writeArray(this);
 }
Ejemplo n.º 2
0
 internal override void write(JsonWriter writer)
 {
     writer.writeString(str);
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Returns the JSON string for this value in its minimal form, without any additional whitespace.
 /// The result is guaranteed to be a valid input for the method <see cref="readFrom(string)"/> and to create a value that is equal to this object.
 /// </summary>
 /// <returns>a JSON string that represents this value</returns>
 public override string ToString()
 {
     StringWriter stringWriter = new StringWriter();
     JsonWriter jsonWriter = new JsonWriter(stringWriter);
     write(jsonWriter);
     return stringWriter.ToString();
 }
Ejemplo n.º 4
0
 internal abstract void write(JsonWriter writer);
Ejemplo n.º 5
0
 internal override void write(JsonWriter writer)
 {
     writer.writeObject(this);
 }