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

            if (Timestamp != 0UL)
            {
                hash ^= Timestamp.GetHashCode();
            }
            if (ChangeType != 0)
            {
                hash ^= ChangeType.GetHashCode();
            }
            if (OperateType != 0)
            {
                hash ^= OperateType.GetHashCode();
            }
            if (RoleType != 0)
            {
                hash ^= RoleType.GetHashCode();
            }
            if (roleAttr_ != null)
            {
                hash ^= RoleAttr.GetHashCode();
            }
            return(hash);
        }
Exemplo n.º 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Element.Length != 0)
            {
                hash ^= Element.GetHashCode();
            }
            if (OldValue.Length != 0)
            {
                hash ^= OldValue.GetHashCode();
            }
            if (NewValue.Length != 0)
            {
                hash ^= NewValue.GetHashCode();
            }
            if (ChangeType != global::Google.Api.ChangeType.Unspecified)
            {
                hash ^= ChangeType.GetHashCode();
            }
            hash ^= advices_.GetHashCode();
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Exemplo n.º 3
0
 public override int GetHashCode()
 {
     unchecked
     {
         return(type.GetHashCode() + 7 * item.GetHashCode());
     }
 }
Exemplo n.º 4
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 result = _Element1.GetHashCode();
         result = (result * 397) ^ _Element2.GetHashCode();
         result = (result * 397) ^ _Change.GetHashCode();
         return(result);
     }
 }
Exemplo n.º 5
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 result = index1.GetHashCode();
         result = (result * 397) ^ index2.GetHashCode();
         result = (result * 397) ^ change.GetHashCode();
         return(result);
     }
 }
Exemplo n.º 6
0
        public override int GetHashCode()
        {
            int hashCode = 0;

            unchecked {
                hashCode += 1000000007 * change.GetHashCode();
                hashCode += 1000000009 * oldStartLineNumber.GetHashCode();
                hashCode += 1000000021 * oldEndLineNumber.GetHashCode();
            }
            return(hashCode);
        }
Exemplo n.º 7
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = Name?.GetHashCode() ?? 0;
         hashCode = (hashCode * 397) ^ (int)Type;
         hashCode = (hashCode * 397) ^ (int)Ttl;
         hashCode = (hashCode * 397) ^ ChangeType.GetHashCode();
         return(hashCode);
     }
 }
Exemplo n.º 8
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (Version != null ? Version.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ChangeType != null ? ChangeType.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Summary != null ? Summary.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Date.GetHashCode();
         hashCode = (hashCode * 397) ^ (Reference != null ? Reference.GetHashCode() : 0);
         return(hashCode);
     }
 }
Exemplo n.º 9
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Element.Length != 0)
            {
                hash ^= Element.GetHashCode();
            }
            if (OldValue.Length != 0)
            {
                hash ^= OldValue.GetHashCode();
            }
            if (NewValue.Length != 0)
            {
                hash ^= NewValue.GetHashCode();
            }
            if (ChangeType != 0)
            {
                hash ^= ChangeType.GetHashCode();
            }
            hash ^= advices_.GetHashCode();
            return(hash);
        }
Exemplo n.º 10
0
 public override int GetHashCode()
 {
     return(_destParseName.GetHashCode() + _changeType.GetHashCode());
 }