Example #1
0
 /// <summary>
 /// Returns the hash code for this <see cref="MusicNote"/>.
 /// </summary>
 /// <returns>
 /// The hash code for the current <see cref="MusicNote"/>.
 /// </returns>
 public override int GetHashCode()
 {
     if (HasOctave())
     {
         return(new { Value, Octave }.GetHashCode());
     }
     else
     {
         return(Value.GetHashCode());
     }
 }