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); } }
public override string ToString() => "Jar1: " + Jar1.ToString() + " " + "Jar2: " + Jar2.ToString() + " Level: " + Level;