public override int GetHashCode() { unchecked { var hashCode = NodeValue; hashCode = (hashCode * 397) ^ Frequincy.GetHashCode(); hashCode = (hashCode * 397) ^ (RightNode != null ? RightNode.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (LeftNode != null ? LeftNode.GetHashCode() : 0); return(hashCode); } }
public override int GetHashCode() { return(LeftNode.GetHashCode() + RightNode.GetHashCode()); }