private void AppendNewLine(Identation style) { _stringBuilder.AppendLine(); if (style == Identation.Inner) { _depth++; } else if (style == Identation.Outer) { _depth--; Debug.Assert(_depth >= 0); } for (int i = 0, n = _depth * _indent; i < n; i++) { _stringBuilder.Append(" "); } }
private void AppendNewLine(Identation style) { sb.AppendLine(); if (style == Identation.Inner) { this.depth++; } else if (style == Identation.Outer) { this.depth--; System.Diagnostics.Debug.Assert(this.depth >= 0); } for (int i = 0, n = this.depth * this.indent; i < n; i++) { sb.Append(" "); } }