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

            if (CurrentVersion.Length != 0)
            {
                hash ^= CurrentVersion.GetHashCode();
            }
            if (NewRevisionAvailable != false)
            {
                hash ^= NewRevisionAvailable.GetHashCode();
            }
            if (NewRevisionSummary.Length != 0)
            {
                hash ^= NewRevisionSummary.GetHashCode();
            }
            if (VersionDeprecated != false)
            {
                hash ^= VersionDeprecated.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
예제 #2
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = StringComparer.OrdinalIgnoreCase.GetHashCode(TableName);
         hashCode = (hashCode * 397) ^ CurrentVersion.GetHashCode();
         hashCode = (hashCode * 397) ^ MinValidVersion.GetHashCode();
         return(hashCode);
     }
 }