Esempio n. 1
0
        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;
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
        }         // func AutoFlush

        public IDisposable Indent(string indentation = "  ")
        {
            return(currentIndentation = new IndentationScope(this, indentation));
        }         // proc Indent
Esempio n. 4
0
 public IndentationScope(LogMessageScope owner, string indentation)
 {
     this.owner       = owner;
     this.parent      = owner.currentIndentation;
     this.Indentation = parent == null ? indentation : parent.Indentation + indentation;
 } // ctor