Ejemplo n.º 1
0
 public override int GetHashCode()
 {
     return(DistanceTop.GetHashCode()
            ^ AngleTop.GetHashCode()
            ^ DistanceBottom.GetHashCode()
            ^ AngleBottom.GetHashCode());
 }
Ejemplo n.º 2
0
        public override bool Equals(object obj)
        {
            var other = obj as HeightMeasurements;

            return(other != null &&
                   DistanceTop.Equals(other.DistanceTop) &&
                   AngleTop.Equals(other.AngleTop) &&
                   DistanceBottom.Equals(other.DistanceBottom) &&
                   AngleBottom.Equals(other.AngleBottom) &&
                   VerticalOffset.Equals(other.VerticalOffset));
        }