Пример #1
0
        public override string ToString()
        {
            string node = "Jar1: " + Jar1.ToString() + " " + "Jar2: " + Jar2.ToString() + " Level: " + Level + "\n";

            if (ParentNode != null)
            {
                string parentNode = " Parent: " + ParentNode.Jar1 + " " + ParentNode.Jar2 + " Level: " + ParentNode.Level + "\n";
                return(node + parentNode);
            }
            else
            {
                return(node);
            }
        }
Пример #2
0
 public override string ToString() => "Jar1: " + Jar1.ToString() + " " + "Jar2: " + Jar2.ToString() + " Level: " + Level;