Пример #1
0
 void IDisposable.Dispose()
 {
     if (this.mFormatter != null)
     {
         this.mFormatter.Context.IndentLevel--;
         this.mFormatter = null;
     }
 }
Пример #2
0
 public StringBuilderContext(TsFormatter writer)
 {
     this.Writer         = writer;
     this.PriorContext   = writer.Context;
     this.IndentLevel    = this.PriorContext != null ? this.PriorContext.IndentLevel : 0;
     this.StringBuilder  = new StringBuilder();
     this.Writer.Context = this;
 }
Пример #3
0
 public StringBuilderContext(TsFormatter writer)
 {
     this.Writer = writer;
     this.PriorContext = writer.Context;
     this.IndentLevel = this.PriorContext != null ? this.PriorContext.IndentLevel : 0;
     this.StringBuilder = new StringBuilder();
     this.Writer.Context = this;
 }
Пример #4
0
 void IDisposable.Dispose()
 {
     if (this.mFormatter != null)
     {
         this.mFormatter.Context.IndentLevel--;
         this.mFormatter = null;
     }
 }
Пример #5
0
 public IndentContext(TsFormatter formatter)
 {
     this.mFormatter = formatter;
     this.mFormatter.Context.IndentLevel++;
 }
Пример #6
0
 public IndentContext(TsFormatter formatter)
 {
     this.mFormatter = formatter;
     this.mFormatter.Context.IndentLevel++;
 }
Пример #7
0
 public Scripter UsingFormatter(TsFormatter writer)
 {
     this.Writer = writer;
     return this;
 }