Ejemplo n.º 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         return((SourceType.GetHashCode() * 397) ^ TargetType.GetHashCode());
     }
 }
Ejemplo n.º 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (TargetType != 0)
            {
                hash ^= TargetType.GetHashCode();
            }
            if (Radius != 0F)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Radius);
            }
            if (CooldownMs != 0)
            {
                hash ^= CooldownMs.GetHashCode();
            }
            if (FocusCost != 0)
            {
                hash ^= FocusCost.GetHashCode();
            }
            if (BuffGmtId.Length != 0)
            {
                hash ^= BuffGmtId.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (ResourceName.Length != 0)
            {
                hash ^= ResourceName.GetHashCode();
            }
            if (id_ != null)
            {
                hash ^= Id.GetHashCode();
            }
            if (name_ != null)
            {
                hash ^= Name.GetHashCode();
            }
            if (countryCode_ != null)
            {
                hash ^= CountryCode.GetHashCode();
            }
            if (targetType_ != null)
            {
                hash ^= TargetType.GetHashCode();
            }
            if (Status != 0)
            {
                hash ^= Status.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Ejemplo n.º 4
0
 public override int GetHashCode()
 {
     return(TargetType.GetHashCode()
            ^ MixinType.GetHashCode()
            ^ MixinKind.GetHashCode()
            ^ base.GetHashCode());
 }
Ejemplo n.º 5
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (TargetType.Length != 0)
            {
                hash ^= TargetType.GetHashCode();
            }
            if (ComparisonOperator != 0)
            {
                hash ^= ComparisonOperator.GetHashCode();
            }
            if (TargetComparisonValue != 0)
            {
                hash ^= TargetComparisonValue.GetHashCode();
            }
            if (LookForBuffs != false)
            {
                hash ^= LookForBuffs.GetHashCode();
            }
            if (ConditionTargetType != 0)
            {
                hash ^= ConditionTargetType.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Ejemplo n.º 6
0
            protected void SetHashCode()
            {
                long th = TargetType.GetHashCode();
                long sh = SourceType.GetHashCode();

                // Cantor pairing
                hash = (int)((th + sh) * (th + sh + 1) / 2 + sh);
            }
Ejemplo n.º 7
0
 public override int GetHashCode()
 {
     return
         (caster.GetHashCode() ^
          targetType.GetHashCode() ^
          targetUnit.GetHashCode() ^
          targetPosition.GetHashCode());
 }
Ejemplo n.º 8
0
        public override int GetHashCode()
        {
            int hashCode = 1298308050;

            hashCode = hashCode * -1521134295 + TargetType.GetHashCode();
            hashCode = hashCode * -1521134295 + BindingFlags.GetHashCode();
            hashCode = hashCode * -1521134295 + MemberName.GetHashCode();
            return(hashCode);
        }
Ejemplo n.º 9
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = TargetType.GetHashCode();
         hashCode = (hashCode * 397) ^ (int)Operator;
         hashCode = (hashCode * 397) ^ Reference.GetHashCode();
         return(hashCode);
     }
 }
Ejemplo n.º 10
0
        public override int GetHashCode()
        {
            int result = 1;

            result = (result * 397) ^ AccessLevel.GetHashCode();
            result = (result * 397) ^ AccessLevelId.GetHashCode();
            result = (result * 397) ^ Id.GetHashCode();
            result = (result * 397) ^ TargetType.GetHashCode();
            return(result);
        }
Ejemplo n.º 11
0
        public override int GetHashCode()
        {
            int h = Operator.GetHashCode();

            if (TargetType != null)
            {
                h ^= TargetType.GetHashCode();
            }
            return(h ^ base.GetHashCode());
        }
Ejemplo n.º 12
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = Container.GetHashCode();
         hashCode = ((hashCode << 5) + hashCode) ^ SourceType.GetHashCode();
         hashCode = ((hashCode << 5) + hashCode) ^ TargetType.GetHashCode();
         return(hashCode);
     }
 }
Ejemplo n.º 13
0
 /// <inheritdoc/>
 public override int GetHashCode()
 {
     unchecked {
         int result = base.GetHashCode();
         result = (result * 397) ^ (TargetType != null ? TargetType.GetHashCode() : 0);
         result = (result * 397) ^ (OldFieldName != null ? OldFieldName.GetHashCode() : 0);
         result = (result * 397) ^ (NewFieldName != null ? NewFieldName.GetHashCode() : 0);
         return(result);
     }
 }
Ejemplo n.º 14
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (TargetType != null ? TargetType.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (int)Parser;
         hashCode = (hashCode * 397) ^ (ValueParserParameter != null ? ValueParserParameter.GetHashCode() : 0);
         return(hashCode);
     }
 }
Ejemplo n.º 15
0
        public override int GetHashCode()
        {
            int hash = 17;

            hash = hash * 31 + Level.GetHashCode();
            hash = hash * 31 + On.GetHashCode();
            hash = hash * 31 + TargetType.GetHashCode();
            hash = hash * 31 + TargetIndex.GetHashCode();
            return(hash);
        }
Ejemplo n.º 16
0
 public override int GetHashCode()
 {
     unchecked // Overflow is fine
     {
         int hash = 17;
         hash = hash * 23 + (Format.HasValue ? Format.Value.GetHashCode() : 0);
         hash = hash * 23 + (ObjectPath != null ? ObjectPath.GetHashCode() : 0);
         hash = hash * 23 + (TargetType != null ? TargetType.GetHashCode() : 0);
         return(hash);
     }
 }
Ejemplo n.º 17
0
 /// <inheritdoc/>
 public override int GetHashCode()
 {
     unchecked {
         int result = base.GetHashCode();
         result = (result * 397) ^ (SourceType != null ? SourceType.GetHashCode() : 0);
         result = (result * 397) ^ (SourceField != null ? SourceField.GetHashCode() : 0);
         result = (result * 397) ^ (TargetType != null ? TargetType.GetHashCode() : 0);
         result = (result * 397) ^ (TargetField != null ? TargetField.GetHashCode() : 0);
         return(result);
     }
 }
Ejemplo n.º 18
0
 public override int GetHashCode()
 {
     if (string.IsNullOrEmpty(m_Sign))
     {
         return(m_TargetType.GetHashCode());
     }
     else
     {
         return((m_TargetType.ToString() + m_Sign).GetHashCode());
     }
 }
Ejemplo n.º 19
0
 public override int GetHashCode()
 {
     unchecked // Overflow is fine
     {
         int hash = 17;
         hash = hash * 23 + (IgnoreCase.HasValue ? IgnoreCase.Value.GetHashCode() : 0);
         hash = hash * 23 + (Field != null ? Field.GetHashCode() : 0);
         hash = hash * 23 + (TargetName != null ? TargetName.GetHashCode() : 0);
         hash = hash * 23 + (TargetType != null ? TargetType.GetHashCode() : 0);
         return(hash);
     }
 }
        public override int GetHashCode()
        {
            unchecked
            {
                int hashCode = TargetType != null?TargetType.GetHashCode() : 0;

                hashCode = (hashCode * 397) ^ (int)MemberTypes;
                hashCode = (hashCode * 397) ^ (ParameterTypes != null ? ListHashCode(ParameterTypes) : 0);
                hashCode = (hashCode * 397) ^ (Name != null ? Name.GetHashCode() : 0);
                return(hashCode);
            }
        }
Ejemplo n.º 21
0
        public override int GetHashCode()
        {
            var hashCode = 7;

            hashCode = 31 * hashCode + TargetType.GetHashCode();
            hashCode = 31 * hashCode + Name.GetHashCode();
            for (int i = 0; i < ParamTypes.Length; i++)
            {
                hashCode = 31 * hashCode + ParamTypes[i].GetHashCode();
            }
            return(hashCode);
        }
Ejemplo n.º 22
0
 /// <inheritdoc />
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Method.GetHashCode();
         hashCode = (hashCode * 397) ^ TargetMethod.GetHashCode();
         hashCode = (hashCode * 397) ^ DeclaringType.GetHashCode();
         hashCode = (hashCode * 397) ^ TargetType.GetHashCode();
         hashCode = (hashCode * 397) ^ (int)InvocationType;
         return(hashCode);
     }
 }
Ejemplo n.º 23
0
        public override int GetHashCode()
        {
            int hashCode = 688758924;

            hashCode = hashCode * -1521134295 + TargetType.GetHashCode();
            hashCode = hashCode * -1521134295 + Flags.GetHashCode();
            for (int i = 0, count = Members.Count; i < count; ++i)
            {
                hashCode = hashCode * -1521134295 + Members[i].GetHashCode();
            }
            return(hashCode);
        }
Ejemplo n.º 24
0
        public override int GetHashCode()
        {
            int hashCode = -25691114;

            hashCode = hashCode * -1521134295 + TargetType.GetHashCode();
            hashCode = hashCode * -1521134295 + BindingFlags.GetHashCode();
            for (int i = 0, count = ParameterTypes.Length; i < count; ++i)
            {
                hashCode = hashCode * -1521134295 + ParameterTypes[i].GetHashCode();
            }
            return(hashCode);
        }
Ejemplo n.º 25
0
 public override int GetHashCode()
 {
     unchecked // Overflow is fine
     {
         int hash = 17;
         hash = hash * 23 + (Field != null ? Field.GetHashCode() : 0);
         hash = hash * 23 + (IgnoreCase ? IgnoreCase.GetHashCode() : 0);
         hash = hash * 23 + (NameSeparator != null ? NameSeparator.GetHashCode() : 0);
         hash = hash * 23 + (TargetName != null ? TargetName.GetHashCode() : 0);
         hash = hash * 23 + (TargetType != null ? TargetType.GetHashCode() : 0);
         hash = hash * 23 + (UseQualifiedName ? UseQualifiedName.GetHashCode() : 0);
         return(hash);
     }
 }
Ejemplo n.º 26
0
        public override int GetHashCode()
        {
            int hash = TargetType.GetHashCode() + (int)MemberTypes * Name.GetHashCode() + BindingFlags.GetHashCode() + IsReadOperation.GetHashCode();

            for (int i = 0; i < ParamTypes.Length; i++)
            {
                hash += ParamTypes[i].GetHashCode() * (i + 1);
            }
            for (int i = 0; i < GenericTypes.Length; i++)
            {
                hash += GenericTypes[i].GetHashCode() * (i + 1);
            }
            return(hash);
        }
Ejemplo n.º 27
0
        public override int GetHashCode()
        {
            int hash = TargetType.GetHashCode() + (int)MemberTypes * Name.GetHashCode() + BindingFlags.GetHashCode();

            if (MemberInfo != null)
            {
                hash += MemberInfo.GetHashCode();
            }
            for (int i = 0; i < ParamTypes.Length; i++)
            {
                hash += ParamTypes[i].GetHashCode();
            }
            return(hash);
        }
Ejemplo n.º 28
0
        public override int GetHashCode()
        {
            int result = Name.GetHashCode();

            if (ConverterType != null)
            {
                result ^= ConverterType.GetHashCode();
            }
            if (TargetType != null)
            {
                result ^= TargetType.GetHashCode();
            }
            return(result);
        }
Ejemplo n.º 29
0
        public override int GetHashCode()
        {
            var h1   = Sql.GetHashCode();
            var h2   = CommandType.GetHashCode();
            var h3   = Connection.GetHashCode();
            var h4   = TargetType.GetHashCode();
            var h5   = ParameterType is null ? h1 : ParameterType.GetHashCode();
            var code =
                L(h1, 1) |
                R(h2, 27) |
                R(h3, 27) |
                L(h4, 2) |
                L(h5, 3);

            return((int)code);
        }
Ejemplo n.º 30
0
        public override int GetHashCode()
        {
            int hashCode = 167991888;

            hashCode = hashCode * -1521134295 + TargetType.GetHashCode();
            hashCode = hashCode * -1521134295 + SourceType.GetHashCode();
            hashCode = hashCode * -1521134295 + Flags.GetHashCode();
            for (int i = 0, count = Sources.Count; i < count; ++i)
            {
                hashCode = hashCode * -1521134295 + Sources[i].GetHashCode();
            }
            for (int i = 0, count = Targets.Count; i < count; ++i)
            {
                hashCode = hashCode * -1521134295 + Targets[i].GetHashCode();
            }
            return(hashCode);
        }