public IDisposable Indent(int count = 4) { // create a new scope with current amount, then increment our indent var scope = new IndentationScope(this, this.IndentAmount); this.SetIndent(this.IndentAmount += count); return scope; }
public IDisposable Indent(int count = 4) { // create a new scope with current amount, then increment our indent var scope = new IndentationScope(this, this.IndentAmount); this.SetIndent(this.IndentAmount += count); return(scope); }
} // func AutoFlush public IDisposable Indent(string indentation = " ") { return(currentIndentation = new IndentationScope(this, indentation)); } // proc Indent
public IndentationScope(LogMessageScope owner, string indentation) { this.owner = owner; this.parent = owner.currentIndentation; this.Indentation = parent == null ? indentation : parent.Indentation + indentation; } // ctor