Exemplo n.º 1
0
 public bool Equals(Note other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(DiatonicNote == other.DiatonicNote && Accidental.Equals(other.Accidental));
 }
Exemplo n.º 2
0
 public bool Equals(Interval other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(base.Equals(other) && DiatonicInterval.Equals(other.DiatonicInterval) && Accidental.Equals(other.Accidental));
 }