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

            hash = hash * 31 + FullyQualifiedName.GetHashCode();
            hash = hash * 31 + Source.GetHashCode();
            return(hash);
        }
Ejemplo n.º 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>
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = FullyQualifiedName?.GetHashCode() ?? 0;
         hashCode = (hashCode * 397) ^ (Version != null ? Version.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ContainingAssemblyPath?.GetHashCode() ?? 0);
         return(hashCode);
     }
 }
Ejemplo n.º 3
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (SearchResultType != global::Google.Cloud.DataCatalog.V1.SearchResultType.Unspecified)
            {
                hash ^= SearchResultType.GetHashCode();
            }
            if (SearchResultSubtype.Length != 0)
            {
                hash ^= SearchResultSubtype.GetHashCode();
            }
            if (RelativeResourceName.Length != 0)
            {
                hash ^= RelativeResourceName.GetHashCode();
            }
            if (LinkedResource.Length != 0)
            {
                hash ^= LinkedResource.GetHashCode();
            }
            if (modifyTime_ != null)
            {
                hash ^= ModifyTime.GetHashCode();
            }
            if (systemCase_ == SystemOneofCase.IntegratedSystem)
            {
                hash ^= IntegratedSystem.GetHashCode();
            }
            if (systemCase_ == SystemOneofCase.UserSpecifiedSystem)
            {
                hash ^= UserSpecifiedSystem.GetHashCode();
            }
            if (FullyQualifiedName.Length != 0)
            {
                hash ^= FullyQualifiedName.GetHashCode();
            }
            if (DisplayName.Length != 0)
            {
                hash ^= DisplayName.GetHashCode();
            }
            if (Description.Length != 0)
            {
                hash ^= Description.GetHashCode();
            }
            hash ^= (int)systemCase_;
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Ejemplo n.º 4
0
 public override int GetHashCode()
 {
     return(FullyQualifiedName.GetHashCode());
 }