Esempio n. 1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (StopDistance != 0D)
            {
                hash ^= StopDistance.GetHashCode();
            }
            if (SpeedLimit != 0D)
            {
                hash ^= SpeedLimit.GetHashCode();
            }
            if (MaxValidStopDistance != 0D)
            {
                hash ^= MaxValidStopDistance.GetHashCode();
            }
            if (MinBoundaryT != 0D)
            {
                hash ^= MinBoundaryT.GetHashCode();
            }
            if (IgnoreMaxStMinT != 0D)
            {
                hash ^= IgnoreMaxStMinT.GetHashCode();
            }
            if (IgnoreMinStMinS != 0D)
            {
                hash ^= IgnoreMinStMinS.GetHashCode();
            }
            return(hash);
        }
Esempio n. 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Enabled != false)
            {
                hash ^= Enabled.GetHashCode();
            }
            if (StopDistance != 0D)
            {
                hash ^= StopDistance.GetHashCode();
            }
            if (SignalExpireTimeSec != 0D)
            {
                hash ^= SignalExpireTimeSec.GetHashCode();
            }
            return(hash);
        }