public override int GetHashCode()
        {
            var firstHash  = CoordX.GetHashCode() + CoordY.GetHashCode();
            var secondHash = Parent.GetHashCode() + Distance.GetHashCode();

            return((firstHash + secondHash) * secondHash + firstHash);
        }
Beispiel #2
0
        public override int GetHashCode()
        {
            var hashCode = 892106565;

            hashCode = hashCode * -1521134295 + CoordX.GetHashCode();
            hashCode = hashCode * -1521134295 + CoordY.GetHashCode();
            hashCode = hashCode * -1521134295 + ParamA.GetHashCode();
            hashCode = hashCode * -1521134295 + ParamB.GetHashCode();
            hashCode = hashCode * -1521134295 + ParamC.GetHashCode();
            hashCode = hashCode * -1521134295 + Distance.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <List <double> > .Default.GetHashCode(Traits);

            return(hashCode);
        }