Exemplo n.º 1
0
 /// <summary>
 /// Creates a new instance of Json writer.
 /// </summary>
 /// <param name="writer">Writer to which text needs to be written.</param>
 /// <param name="indent">If the output should be indented or not.</param>
 public JsonWriter(TextWriter writer, bool indent)
 {
     this.writer = new IndentedTextWriter(writer, indent);
     this.scopes = new Stack<Scope>();
 }