Beispiel #1
0
 public IndentedWriter(IndentedWriter w)
 {
     this.IndentString   = w.IndentString;
     this._indent        = w._indent;
     this._lineHasIndent = w._lineHasIndent;
     this._builder       = new StringBuilder(w._builder.ToString());
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Block"/> class.
 /// </summary>
 /// <param name="writer">The writer<see cref="IndentedWriter"/></param>
 public Block(IndentedWriter writer)
 {
     _writer = writer;
     _writer.OpenBlockCore();
 }