Exemplo n.º 1
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) + "}");
     }
 }
Exemplo n.º 2
0
 public string GetAttributeString()
 {
     return(Attribute?.ToString());
 }