public override int GetHashCode()
 {
     unchecked
     {
         return((IsEnabled.GetHashCode() * 397) ^ (Key != null ? Key.GetHashCode() : 0));
     }
 }
示例#2
0
        public override int GetHashCode()
        {
            int hashCode = GetType().GetHashCode();

            hashCode = hashCode ^ (Roles == null ? 0 : Roles.GetHashCode());
            hashCode = hashCode ^ IsEnabled.GetHashCode();
            return(hashCode);
        }
 public override int GetHashCode()
 {
     return(new object[] { OrganisationName, LoginId, FirstName, LastName, EmailAddress, Count }.GetCollectionHashCode()
            ^ MatchOrganisationNameExactly.GetHashCode()
            ^ IsEnabled.GetHashCode()
            ^ IsDisabled.GetHashCode()
            ^ SortOrder.GetHashCode());
 }
示例#4
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = IsEnabled.GetHashCode();
         hashCode = (hashCode * 397) ^ EnabledOn.GetHashCode();
         hashCode = (hashCode * 397) ^ MyAppKey.GetHashCode();
         return(hashCode);
     }
 }
示例#5
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = IsScanEnabled.GetHashCode();
         hashCode = (hashCode * 397) ^ IsEnabled.GetHashCode();
         hashCode = (hashCode * 397) ^ (Patterns != null ? Patterns.GetHashCode() : 0);
         return(hashCode);
     }
 }
示例#6
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (Name != null ? Name.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ IsEnabled.GetHashCode();
         hashCode = (hashCode * 397) ^ (MainSettings != null ? MainSettings.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (PanoramaSettings != null ? PanoramaSettings.GetHashCode() : 0);
         return(hashCode);
     }
 }
示例#7
0
 public override int GetHashCode()
 {
     unchecked
     {
         int result = (FirstName != null ? FirstName.GetHashCode() : 0);
         result = (result * 397) ^ (LastName != null ? LastName.GetHashCode() : 0);
         result = (result * 397) ^ IsEnabled.GetHashCode();
         result = (result * 397) ^ IsActivated.GetHashCode();
         return(result);
     }
 }
示例#8
0
        public override int GetHashCode()
        {
            var hashCode = -313755654;

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

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

            return(hashCode);
        }
示例#9
0
 public override int GetHashCode()
 {
     unchecked {
         var hashCode = IsEnabled.GetHashCode();
         hashCode = (hashCode * 397) ^ IsBlurEnabled.GetHashCode();
         hashCode = (hashCode * 397) ^ IsDilateEnabled.GetHashCode();
         hashCode = (hashCode * 397) ^ Color.GetHashCode();
         hashCode = (hashCode * 397) ^ Blur.GetHashCode();
         hashCode = (hashCode * 397) ^ Dilate.GetHashCode();
         return(hashCode);
     }
 }
示例#10
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (Name != null ? Name.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Key1 != null ? Key1.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Key2 != null ? Key2.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ HasShiftModifier.GetHashCode();
         hashCode = (hashCode * 397) ^ HasCtrlModifier.GetHashCode();
         hashCode = (hashCode * 397) ^ HasAltModifier.GetHashCode();
         hashCode = (hashCode * 397) ^ IsEnabled.GetHashCode();
         return(hashCode);
     }
 }
示例#11
0
        public override int GetHashCode()
        {
            var hashCode = -1633517011;

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

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

            hashCode = (hashCode * -1521134295) + EqualityComparer <AccountType> .Default.GetHashCode(_accountType);

            hashCode = (hashCode * -1521134295) + Balance.GetHashCode();
            hashCode = (hashCode * -1521134295) + IsEnabled.GetHashCode();
            return(hashCode);
        }
示例#12
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Id.Length != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (IsEnabled != false)
            {
                hash ^= IsEnabled.GetHashCode();
            }
            hash ^= content_.GetHashCode();
            hash ^= price_.GetHashCode();
            if (PaymentType != 0)
            {
                hash ^= PaymentType.GetHashCode();
            }
            if (LastModifiedTimestampMs != 0L)
            {
                hash ^= LastModifiedTimestampMs.GetHashCode();
            }
            hash ^= presentationData_.GetHashCode();
            if (EnabledWindowStartMs != 0L)
            {
                hash ^= EnabledWindowStartMs.GetHashCode();
            }
            if (EnabledWindowEndMs != 0L)
            {
                hash ^= EnabledWindowEndMs.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
示例#13
0
        public override int GetHashCode()
        {
            unchecked
            {
                var hashCode = ProjectName?.GetHashCode() ?? 0;
                hashCode = hashCode * 397 + (DriverName?.GetHashCode() ?? 0);
                hashCode = hashCode * 397 + (ConfiguredDriverType?.GetHashCode() ?? 0);
                hashCode = hashCode * 397 + (ConfiguredObjectType?.GetHashCode() ?? 0);
                hashCode = hashCode * 397 + (ConfiguredDriverExeName?.GetHashCode() ?? 0);
                hashCode = hashCode * 397 + (ConnectionName?.GetHashCode() ?? 0);
                hashCode = hashCode * 397 + (NetAddress?.GetHashCode() ?? 0);
                hashCode = hashCode * 397 + (PrimaryIpAddress?.GetHashCode() ?? 0);
                hashCode = hashCode * 397 + PortNumber;
                hashCode = hashCode * 397 + UnitId;
                hashCode = hashCode * 397 + Offset.GetHashCode();
                hashCode = hashCode * 397 + (int)StartOffset;
                hashCode = hashCode * 397 + IsEnabled.GetHashCode();
                hashCode = hashCode * 397 + IsSerial.GetHashCode();
                hashCode = hashCode * 397 + IsMultiMaster.GetHashCode();
                hashCode = hashCode * 397 + SkipRegister.GetHashCode();

                return(hashCode);
            }
        }
示例#14
0
 public override int GetHashCode()
 {
     return((_value != null ? _value.GetHashCode() : 0) + 29 * IsEnabled.GetHashCode());
 }
示例#15
0
 public override int GetHashCode()
 {
     return(_values.GetHashCode() + 29 * IsEnabled.GetHashCode());
 }