public override int GetHashCode() { unchecked { int hashCode = base.GetHashCode(); hashCode = (hashCode * 397) ^ DiatonicInterval.GetHashCode(); hashCode = (hashCode * 397) ^ Accidental.GetHashCode(); return(hashCode); } }
/// <summary> /// Hash code. /// </summary> public override int GetHashCode() { return(Letter.GetHashCode() + Accidental.GetHashCode()); }