Пример #1
0
        public KerbalNode(string name, KerbalNode parent = null)
        {
            Name = name;
            Parent = parent;
            Values = new Dictionary<string, List<string>>();
            Children = new List<KerbalNode>();

            if (Parent != null) Parent.Children.Add(this);
        }
Пример #2
0
        public KerbalNode(string name, KerbalNode parent = null)
        {
            Name     = name;
            Parent   = parent;
            Values   = new Dictionary <string, List <string> >();
            Children = new List <KerbalNode>();

            if (Parent != null)
            {
                Parent.Children.Add(this);
            }
        }