public bool Equals(Bdd bdd) { return(this.GetHashCode() == bdd.GetHashCode()); //assuming GetHashCode is unique }