Exemple #1
0
        public override string stringify()
        {
            string output = " " + Name + " { ";

            if (this.numOfChildren() == 0)
            {
                return(output + " } ");
            }
            output += children[0].stringify();
            for (int i = 1; i < children.Count; i++)
            {
                Component toAdd = children[i];
                output += "," + toAdd.stringify();
            }
            output += " } ";
            return(output);
        }