コード例 #1
0
 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 && MaxSampleDiff.Equals(other.MaxSampleDiff) &&
            Subpixel == other.Subpixel && ScaleBase.Equals(other.ScaleBase) && Branches == other.Branches &&
            AcceptableDiff.Equals(other.AcceptableDiff) && Correction == other.Correction);
 }
コード例 #2
0
 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) ^ MaxSampleDiff.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);
     }
 }