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