示例#1
0
        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));
        }
示例#2
0
        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));
        }