public string ToString() { string text; text = "Identifier: " + identifier + ", value: " + value + ", rank: " + rank + ", feature: " + feature + ", parentNode: "; if (HasParent()) { text += parentNode.GetIdentifier(); } else { text += "None"; } text += ", leftNode: " + leftNode.GetIdentifier() + ", rightNode: " + rightNode.GetIdentifier(); return(text); }