public override void Write(int indent, string textToAppend) { var action = new Action(() => { this.Write(SPACE.Repeat(indent) + textToAppend); }); this.WriterActions.AddToDictionaryListCreateIfNotExist(this.CurrentNodeKind, new WriterAction(this.CurrentNode, action)); }
public override void Write(int indent, string format, params object[] args) { var action = new Action(() => { this.Write(SPACE.Repeat(indent) + string.Format(format, args)); }); this.WriterActions.AddToDictionaryListCreateIfNotExist(this.CurrentNodeKind, new WriterAction(this.CurrentNode, action)); }