Beispiel #1
0
        public IEnumerable <string> LeafValuesToTextLines(string separator = ".")
        {
            var textStack = new TextStack(separator);

            LeafValuesToTextLines(textStack);

            return(textStack.Lines);
        }
Beispiel #2
0
        public override void LeafValuesToTextLines(TextStack textStack)
        {
            textStack.Push(Key.ToString());

            foreach (var pair in _chidNodesDictionary)
            {
                pair.Value.LeafValuesToTextLines(textStack);
            }

            textStack.Pop();
        }
Beispiel #3
0
 public abstract void LeafValuesToTextLines(TextStack textStack);
Beispiel #4
0
 public override void LeafValuesToTextLines(TextStack textStack)
 {
     textStack.AddLeaf(Key + " = " + Value);
 }