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

            LeafValuesToTextLines(textStack);

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

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

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