public override int GetHashCode() { var hashCode = -780910197; hashCode = hashCode * -1521134295 + Denominator.GetHashCode(); hashCode = hashCode * -1521134295 + AmountOfDots.GetHashCode(); return(hashCode); }
} // How many Dots does this symbol have? public override bool Equals(object obj) { var length = obj as Length; return(length != null && Denominator.Equals(length.Denominator) && AmountOfDots == length.AmountOfDots); }