protected bool Equals(OverlayConfig other) { return(MinOverlayArea.Equals(other.MinOverlayArea) && MinSourceArea.Equals(other.MinSourceArea) && AspectRatio1.Equals(other.AspectRatio1) && AspectRatio2.Equals(other.AspectRatio2) && Angle1.Equals(other.Angle1) && Angle2.Equals(other.Angle2) && MinSampleArea == other.MinSampleArea && RequiredSampleArea == other.RequiredSampleArea && MaxSampleDifference.Equals(other.MaxSampleDifference) && Subpixel == other.Subpixel && ScaleBase.Equals(other.ScaleBase) && Branches == other.Branches && AcceptableDiff.Equals(other.AcceptableDiff) && Correction == other.Correction); }
public override int GetHashCode() { unchecked { var hashCode = MinOverlayArea.GetHashCode(); hashCode = (hashCode * 397) ^ MinSourceArea.GetHashCode(); hashCode = (hashCode * 397) ^ AspectRatio1.GetHashCode(); hashCode = (hashCode * 397) ^ AspectRatio2.GetHashCode(); hashCode = (hashCode * 397) ^ Angle1.GetHashCode(); hashCode = (hashCode * 397) ^ Angle2.GetHashCode(); hashCode = (hashCode * 397) ^ MinSampleArea; hashCode = (hashCode * 397) ^ RequiredSampleArea; hashCode = (hashCode * 397) ^ MaxSampleDifference.GetHashCode(); hashCode = (hashCode * 397) ^ Subpixel.GetHashCode(); hashCode = (hashCode * 397) ^ ScaleBase.GetHashCode(); hashCode = (hashCode * 397) ^ Branches; hashCode = (hashCode * 397) ^ AcceptableDiff.GetHashCode(); hashCode = (hashCode * 397) ^ Correction; return(hashCode); } }