/// <summary> /// Serves as the default hash function. /// </summary> /// <returns>A hash code for the current object.</returns> public override int GetHashCode() { unchecked { var result = 17; result = result * 23 + RootNote.GetHashCode(); result = result * 23 + Intervals.GetHashCode(); return(result); } }
/// <summary> /// Serves as the default hash function. /// </summary> /// <returns>A hash code for the current object.</returns> public override int GetHashCode() { return(RootNote.GetHashCode() ^ Intervals.GetHashCode()); }