示例#1
0
        public override int GetHashCode()
        {
            var hashCode = 996675367;

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Field);

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Value);

            hashCode = hashCode * -1521134295 + ConnectionValueType.GetHashCode();
            hashCode = hashCode * -1521134295 + SortIndex.GetHashCode();

            return(hashCode);
        }
示例#2
0
 public override int GetHashCode()
 {
     unchecked
     {
         int result = Name.GetHashCode();
         result = (result * 397) ^ (Caption != null ? Caption.GetHashCode() : 0);
         result = (result * 397) ^ (Format != null ? Format.GetHashCode() : 0);
         result = (result * 397) ^ Hidden.GetHashCode();
         result = (result * 397) ^ (SortIndex != null ? SortIndex.GetHashCode() : 0);
         result = (result * 397) ^ (SortDirection != null ? SortDirection.GetHashCode() : 0);
         result = (result * 397) ^ Total.GetHashCode();
         return(result);
     }
 }
示例#3
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (MaxDistanceValid != false)
            {
                hash ^= MaxDistanceValid.GetHashCode();
            }
            if (SensorIdValid != false)
            {
                hash ^= SensorIdValid.GetHashCode();
            }
            if (RadarPowerValid != false)
            {
                hash ^= RadarPowerValid.GetHashCode();
            }
            if (OutputTypeValid != false)
            {
                hash ^= OutputTypeValid.GetHashCode();
            }
            if (SendQualityValid != false)
            {
                hash ^= SendQualityValid.GetHashCode();
            }
            if (SendExtInfoValid != false)
            {
                hash ^= SendExtInfoValid.GetHashCode();
            }
            if (SortIndexValid != false)
            {
                hash ^= SortIndexValid.GetHashCode();
            }
            if (StoreInNvmValid != false)
            {
                hash ^= StoreInNvmValid.GetHashCode();
            }
            if (CtrlRelayValid != false)
            {
                hash ^= CtrlRelayValid.GetHashCode();
            }
            if (RcsThresholdValid != false)
            {
                hash ^= RcsThresholdValid.GetHashCode();
            }
            if (MaxDistance != 0)
            {
                hash ^= MaxDistance.GetHashCode();
            }
            if (SensorId != 0)
            {
                hash ^= SensorId.GetHashCode();
            }
            if (OutputType != 0)
            {
                hash ^= OutputType.GetHashCode();
            }
            if (RadarPower != 0)
            {
                hash ^= RadarPower.GetHashCode();
            }
            if (CtrlRelay != 0)
            {
                hash ^= CtrlRelay.GetHashCode();
            }
            if (SendExtInfo != false)
            {
                hash ^= SendExtInfo.GetHashCode();
            }
            if (SendQuality != false)
            {
                hash ^= SendQuality.GetHashCode();
            }
            if (SortIndex != 0)
            {
                hash ^= SortIndex.GetHashCode();
            }
            if (StoreInNvm != 0)
            {
                hash ^= StoreInNvm.GetHashCode();
            }
            if (RcsThreshold != 0)
            {
                hash ^= RcsThreshold.GetHashCode();
            }
            if (InputSendInterval != 0UL)
            {
                hash ^= InputSendInterval.GetHashCode();
            }
            return(hash);
        }