Example #1
0
        public void ToString(StringBuilder Output, int Indent)
        {
            Output.Append(VyattaConfigUtil.IndentString(Indent));

            Output.Append(Name);

            foreach (var Child in Children)
            {
                Output.Append(" ");

                Child.ToString(Output, 0);
            }
        }
Example #2
0
 public void ToString(StringBuilder Output, int Indent)
 {
     if (Attribute == null)
     {
         foreach (VyattaConfigNode Node in Children)
         {
             Node.ToString(Output, Indent + 1);
             Output.Append("\n");
         }
     }
     else
     {
         Output.Append(VyattaConfigUtil.IndentString(Indent));
         Attribute.ToString(Output, 0);
         Output.Append(" {\n");
         foreach (VyattaConfigNode Node in Children)
         {
             Node.ToString(Output, Indent + 1);
             Output.Append("\n");
         }
         Output.Append(VyattaConfigUtil.IndentString(Indent) + "}");
     }
 }