public CodeBuilder ( StringBuilder sb, int startingIndent, int tabWidth = 4 ) : System | ||
sb | StringBuilder | StringBuilder instance to wrap |
startingIndent | int | Staring indent width (in spaces) |
tabWidth | int | Additional indent width (in spaces) |
return | System |
public CodeBuilder(StringBuilder sb, int startingIndent, int tabWidth = 4)
{
this.sb = sb;
this.tabWidth = tabWidth;
this.currentIndent = startingIndent;
this.indentSpaces = new string(' ', currentIndent);
}