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