Exemple #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Id != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (Type != 0)
            {
                hash ^= Type.GetHashCode();
            }
            if (SharedDataDir.Length != 0)
            {
                hash ^= SharedDataDir.GetHashCode();
            }
            if (GameName.Length != 0)
            {
                hash ^= GameName.GetHashCode();
            }
            if (TargetName.Length != 0)
            {
                hash ^= TargetName.GetHashCode();
            }
            if (TargetTimestamp != 0UL)
            {
                hash ^= TargetTimestamp.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Exemple #2
0
 /// <summary>
 ///     Serves as a hash function for a particular type.
 /// </summary>
 /// <returns>
 ///     A hash code for the current <see cref="T:System.Object" />.
 /// </returns>
 /// <filterpriority>2</filterpriority>
 public override int GetHashCode()
 {
     unchecked {
         int hashCode = (Name != null ? Name.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (TargetName != null ? TargetName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (int)Type;
         hashCode = (hashCode * 397) ^ (Implicit ? 1 : 0);
         return(hashCode);
     }
 }
Exemple #3
0
 public override int GetHashCode()
 {
     unchecked // Overflow is fine
     {
         int hash = 17;
         hash = hash * 23 + (IgnoreCase ? IgnoreCase.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 // Overflow is fine
     {
         int hash = 17;
         hash = hash * 23 + (Field != null ? Field.GetHashCode() : 0);
         hash = hash * 23 + (IgnoreCase.HasValue ? IgnoreCase.Value.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.HasValue ? UseQualifiedName.Value.GetHashCode() : 0);
         return(hash);
     }
 }
Exemple #5
0
                public override int GetHashCode()
                {
                    int hash = 1;

                    if (TargetName.Length != 0)
                    {
                        hash ^= TargetName.GetHashCode();
                    }
                    hash ^= watchVariables_.GetHashCode();
                    if (_unknownFields != null)
                    {
                        hash ^= _unknownFields.GetHashCode();
                    }
                    return(hash);
                }
        public override int GetHashCode()
        {
            int hash = 1;

            if (HasTargetName)
            {
                hash ^= TargetName.GetHashCode();
            }
            if (HasUri)
            {
                hash ^= Uri.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
        public override int GetHashCode()
        {
            int hashcode = 0;

            if (InstanceId != null)
            {
                hashcode ^= InstanceId.GetHashCode();
            }

            if (TargetName != null)
            {
                hashcode ^= TargetName.GetHashCode();
            }

            if (DatabaseId != null)
            {
                hashcode ^= DatabaseId.GetHashCode();
            }

            return(hashcode);
        }
Exemple #8
0
 /// <summary>Serves as a hashcode for the specified type</summary>
 public override int GetHashCode()
 {
     return(TargetName.GetHashCode());
 }