Пример #1
0
        /// <summary>
        /// Gets the hash code
        /// </summary>
        /// <returns>Hash code</returns>
        public override int GetHashCode()
        {
            unchecked // Overflow is fine, just wrap
            {
                var hashCode = 41;
                // Suitable nullity checks etc, of course :)

                hashCode = hashCode * 59 + HttpStatus.GetHashCode();

                hashCode = hashCode * 59 + ErrorCode.GetHashCode();
                if (Description != null)
                {
                    hashCode = hashCode * 59 + Description.GetHashCode();
                }
                if (DocumentationLink != null)
                {
                    hashCode = hashCode * 59 + DocumentationLink.GetHashCode();
                }
                if (AdditionalInfo != null)
                {
                    hashCode = hashCode * 59 + AdditionalInfo.GetHashCode();
                }
                return(hashCode);
            }
        }
Пример #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (CmdAckType.Length != 0)
            {
                hash ^= CmdAckType.GetHashCode();
            }
            if (ErrorCode != 0L)
            {
                hash ^= ErrorCode.GetHashCode();
            }
            if (ErrorMsg.Length != 0)
            {
                hash ^= ErrorMsg.GetHashCode();
            }
            if (Payload.Length != 0)
            {
                hash ^= Payload.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Пример #3
0
        public override int GetHashCode()
        {
            int hashCode = -840958873;

            hashCode = hashCode * -1521134295 + EqualityComparer <IDictionary> .Default.GetHashCode(Data);

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(HelpLink);

            hashCode = hashCode * -1521134295 + HResult.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <Exception> .Default.GetHashCode(InnerException);

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Message);

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Source);

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(StackTrace);

            hashCode = hashCode * -1521134295 + EqualityComparer <MethodBase> .Default.GetHashCode(TargetSite);

            hashCode = hashCode * -1521134295 + ErrorCode.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Description);

            hashCode = hashCode * -1521134295 + EqualityComparer <ResponseParameters> .Default.GetHashCode(Parameters);

            hashCode = hashCode * -1521134295 + EqualityComparer <HttpResponseMessage> .Default.GetHashCode(ResponseMessage);

            return(hashCode);
        }
Пример #4
0
    public override int GetHashCode()
    {
        int hash = 1;

        if (HasPayloadType)
        {
            hash ^= PayloadType.GetHashCode();
        }
        if (HasErrorCode)
        {
            hash ^= ErrorCode.GetHashCode();
        }
        if (HasDescription)
        {
            hash ^= Description.GetHashCode();
        }
        if (HasMaintenanceEndTimestamp)
        {
            hash ^= MaintenanceEndTimestamp.GetHashCode();
        }
        if (_unknownFields != null)
        {
            hash ^= _unknownFields.GetHashCode();
        }
        return(hash);
    }
Пример #5
0
        public override int GetHashCode()
        {
            int hashcode = 157;

            unchecked {
                hashcode = (hashcode * 397) + StatusCode.GetHashCode();
                if (__isset.infoMessages)
                {
                    hashcode = (hashcode * 397) + TCollections.GetHashCode(InfoMessages);
                }
                if (__isset.sqlState)
                {
                    hashcode = (hashcode * 397) + SqlState.GetHashCode();
                }
                if (__isset.errorCode)
                {
                    hashcode = (hashcode * 397) + ErrorCode.GetHashCode();
                }
                if (__isset.errorMessage)
                {
                    hashcode = (hashcode * 397) + ErrorMessage.GetHashCode();
                }
            }
            return(hashcode);
        }
Пример #6
0
 public override int GetHashCode()
 {
     unchecked
     {
         return(((ErrorCode != null ? ErrorCode.GetHashCode() : 0) * 397) ^ (Error != null ? Error.GetHashCode() : 0));
     }
 }
Пример #7
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Command.Length != 0)
            {
                hash ^= Command.GetHashCode();
            }
            if (SeqId != 0L)
            {
                hash ^= SeqId.GetHashCode();
            }
            if (RetryCount != 0)
            {
                hash ^= RetryCount.GetHashCode();
            }
            if (PayloadData.Length != 0)
            {
                hash ^= PayloadData.GetHashCode();
            }
            if (userInstance_ != null)
            {
                hash ^= UserInstance.GetHashCode();
            }
            if (ErrorCode != 0)
            {
                hash ^= ErrorCode.GetHashCode();
            }
            if (settingInfo_ != null)
            {
                hash ^= SettingInfo.GetHashCode();
            }
            if (requestBasicInfo_ != null)
            {
                hash ^= RequestBasicInfo.GetHashCode();
            }
            if (SubBiz.Length != 0)
            {
                hash ^= SubBiz.GetHashCode();
            }
            if (frontendInfo_ != null)
            {
                hash ^= FrontendInfo.GetHashCode();
            }
            if (Kpn.Length != 0)
            {
                hash ^= Kpn.GetHashCode();
            }
            if (AnonymouseUser != false)
            {
                hash ^= AnonymouseUser.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Пример #8
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = IsSuccess.GetHashCode();
         hashCode = (hashCode * 397) ^ (ErrorCode != null ? ErrorCode.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Description != null ? Description.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Value != null ? Value.GetHashCode() : 0);
         return(hashCode);
     }
 }
Пример #9
0
 public override int GetHashCode()
 {
     unchecked // disable overflow, for the unlikely possibility that you
     {         // are compiling with overflow-checking enabled
         int hash = 27;
         hash = (13 * hash) + Topic.GetHashCode();
         hash = (13 * hash) + PartitionId.GetHashCode();
         hash = (13 * hash) + ErrorCode.GetHashCode();
         return(hash);
     }
 }
Пример #10
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hash = 17;
         hash = hash * 23 + (ErrorCode == null ? 0 : ErrorCode.GetHashCode());
         hash = hash * 23 + (ErrorMessage == null ? 0 : ErrorMessage.GetHashCode());
         hash = hash * 23 + (_validationErrors == null ? 0 : _validationErrors.GetHashCode());
         return(hash);
     }
 }
Пример #11
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (FileName != null ? FileName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ LineNumber;
         hashCode = (hashCode * 397) ^ ColumnNumber;
         hashCode = (hashCode * 397) ^ IsError.GetHashCode();
         hashCode = (hashCode * 397) ^ (ErrorCode != null ? ErrorCode.GetHashCode() : 0);
         return(hashCode);
     }
 }
Пример #12
0
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         int hashCode = 41;
         hashCode = hashCode * 59 + ErrorCode.GetHashCode();
         hashCode = hashCode * 59 + PageNumber.GetHashCode();
         if (ExtErrorMessage != null)
         {
             hashCode = hashCode * 59 + ExtErrorMessage.GetHashCode();
         }
         return(hashCode);
     }
 }
Пример #13
0
        public override int GetHashCode()
        {
            int hashCode = 493339093;

            hashCode = hashCode * -1521134295 + Ok.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <T> .Default.GetHashCode(Result);

            hashCode = hashCode * -1521134295 + ErrorCode.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Description);

            hashCode = hashCode * -1521134295 + EqualityComparer <ResponseParameters> .Default.GetHashCode(Parameters);

            return(hashCode);
        }
Пример #14
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ErrorCode != 0)
            {
                hash ^= ErrorCode.GetHashCode();
            }
            if (ErrorMessage.Length != 0)
            {
                hash ^= ErrorMessage.GetHashCode();
            }
            return(hash);
        }
Пример #15
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ErrorCode != 0)
            {
                hash ^= ErrorCode.GetHashCode();
            }
            if (Version != 0F)
            {
                hash ^= Version.GetHashCode();
            }
            return(hash);
        }
        /// <summary>
        /// Gets the hash code
        /// </summary>
        /// <returns>Hash code</returns>
        public override int GetHashCode()
        {
            unchecked // Overflow is fine, just wrap
            {
                var hashCode = 41;
                // Suitable nullity checks etc, of course :)

                hashCode = hashCode * 59 + ErrorCode.GetHashCode();
                if (Message != null)
                {
                    hashCode = hashCode * 59 + Message.GetHashCode();
                }
                return(hashCode);
            }
        }
Пример #17
0
        public override int GetHashCode()
        {
            int hashcode = 157;

            unchecked {
                if (__isset.errorCode)
                {
                    hashcode = (hashcode * 397) + ErrorCode.GetHashCode();
                }
                if ((Message != null) && __isset.message)
                {
                    hashcode = (hashcode * 397) + Message.GetHashCode();
                }
            }
            return(hashcode);
        }
Пример #18
0
        public override int GetHashCode()
        {
            int hashcode = 157;

            unchecked {
                if (__isset.errorCode)
                {
                    hashcode = (hashcode * 397) + ErrorCode.GetHashCode();
                }
                if ((Struct_thing != null) && __isset.struct_thing)
                {
                    hashcode = (hashcode * 397) + Struct_thing.GetHashCode();
                }
            }
            return(hashcode);
        }
Пример #19
0
        /// <summary>
        /// Return the HashCode of this object.
        /// </summary>
        /// <returns>The HashCode of this object.</returns>
        public override Int32 GetHashCode()
        {
            unchecked
            {
                return(ConnectorId.GetHashCode() * 17 ^
                       Status.GetHashCode() * 13 ^
                       ErrorCode.GetHashCode() * 11 ^
                       Info.GetHashCode() * 7 ^

                       (StatusTimestamp.HasValue
                            ? StatusTimestamp.GetHashCode()
                            : 0) * 19 ^

                       ErrorCode.GetHashCode() * 5 ^
                       Info.GetHashCode());
            }
        }
        /// <summary>
        ///     Gets the hash code
        /// </summary>
        /// <returns>Hash code</returns>
        public override int GetHashCode()
        {
            // credit: http://stackoverflow.com/a/263416/677735
            unchecked // Overflow is fine, just wrap
            {
                var hash = 41;
                // Suitable nullity checks etc, of course :)

                if (Op != null)
                {
                    hash = hash * 59 + Op.GetHashCode();
                }

                if (Id != null)
                {
                    hash = hash * 59 + Id.GetHashCode();
                }

                if (ErrorMessage != null)
                {
                    hash = hash * 59 + ErrorMessage.GetHashCode();
                }

                if (ErrorCode != null)
                {
                    hash = hash * 59 + ErrorCode.GetHashCode();
                }

                if (ConnectionId != null)
                {
                    hash = hash * 59 + ConnectionId.GetHashCode();
                }

                if (ConnectionClosed != null)
                {
                    hash = hash * 59 + ConnectionClosed.GetHashCode();
                }

                if (StatusCode != null)
                {
                    hash = hash * 59 + StatusCode.GetHashCode();
                }

                return(hash);
            }
        }
        public override int GetHashCode()
        {
            int hashcode = 157;

            unchecked {
                hashcode = (hashcode * 397) + Status.GetHashCode();
                if (__isset.operationState)
                {
                    hashcode = (hashcode * 397) + OperationState.GetHashCode();
                }
                if (__isset.sqlState)
                {
                    hashcode = (hashcode * 397) + SqlState.GetHashCode();
                }
                if (__isset.errorCode)
                {
                    hashcode = (hashcode * 397) + ErrorCode.GetHashCode();
                }
                if (__isset.errorMessage)
                {
                    hashcode = (hashcode * 397) + ErrorMessage.GetHashCode();
                }
                if (__isset.taskStatus)
                {
                    hashcode = (hashcode * 397) + TaskStatus.GetHashCode();
                }
                if (__isset.operationStarted)
                {
                    hashcode = (hashcode * 397) + OperationStarted.GetHashCode();
                }
                if (__isset.operationCompleted)
                {
                    hashcode = (hashcode * 397) + OperationCompleted.GetHashCode();
                }
                if (__isset.hasResultSet)
                {
                    hashcode = (hashcode * 397) + HasResultSet.GetHashCode();
                }
                if (__isset.progressUpdateResponse)
                {
                    hashcode = (hashcode * 397) + ProgressUpdateResponse.GetHashCode();
                }
            }
            return(hashcode);
        }
Пример #22
0
        public override int GetHashCode()
        {
            int hashCode = this.GetType().GetHashCode();

            if (ErrorCode != null)
            {
                hashCode = hashCode ^ ErrorCode.GetHashCode();
            }
            if (ErrorDetail != null)
            {
                hashCode = hashCode ^ ErrorDetail.GetHashCode();
            }
            if (ErrorData != null)
            {
                hashCode = hashCode ^ ErrorData.GetHashCode();
            }
            return(hashCode);
        }
Пример #23
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ErrorCode != 0)
            {
                hash ^= ErrorCode.GetHashCode();
            }
            if (Msgtxt.Length != 0)
            {
                hash ^= Msgtxt.GetHashCode();
            }
            if (NextOperate != 0)
            {
                hash ^= NextOperate.GetHashCode();
            }
            return(hash);
        }
Пример #24
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ErrorCode != 0)
            {
                hash ^= ErrorCode.GetHashCode();
            }
            if (Version != 0F)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Version);
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Пример #25
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ErrorCode != 0)
            {
                hash ^= ErrorCode.GetHashCode();
            }
            if (ErrorInfo.Length != 0)
            {
                hash ^= ErrorInfo.GetHashCode();
            }
            if (Content.Length != 0)
            {
                hash ^= Content.GetHashCode();
            }
            return(hash);
        }
Пример #26
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ErrorCode != global::Tron.Protocol.Messages.Common.ErrorCode.Other)
            {
                hash ^= ErrorCode.GetHashCode();
            }
            if (Message.Length != 0)
            {
                hash ^= Message.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (ErrorCode != 0)
            {
                hash ^= ErrorCode.GetHashCode();
            }
            if (userdata_ != null)
            {
                hash ^= Userdata.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Пример #28
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ErrorCode != 0)
            {
                hash ^= ErrorCode.GetHashCode();
            }
            if (ErrorMessage.Length != 0)
            {
                hash ^= ErrorMessage.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Пример #29
0
        /// <summary>
        ///     Gets the hash code
        /// </summary>
        /// <returns>Hash code</returns>
        public override int GetHashCode()
        {
            unchecked // Overflow is fine, just wrap
            {
                int hashCode = 41;
                // Suitable nullity checks etc, of course :)
                if (IsCanceled != null)
                {
                    hashCode = hashCode * 59 + IsCanceled.GetHashCode();
                }

                if (IsError != null)
                {
                    hashCode = hashCode * 59 + IsError.GetHashCode();
                }

                if (ErrorCode != null)
                {
                    hashCode = hashCode * 59 + ErrorCode.GetHashCode();
                }

                if (AccessToken != null)
                {
                    hashCode = hashCode * 59 + AccessToken.GetHashCode();
                }

                if (IdToken != null)
                {
                    hashCode = hashCode * 59 + IdToken.GetHashCode();
                }

                if (Scopes != null)
                {
                    hashCode = hashCode * 59 + Scopes.GetHashCode();
                }

                if (ExpiresOn != null)
                {
                    hashCode = hashCode * 59 + ExpiresOn.GetHashCode();
                }

                return(hashCode);
            }
        }
        public override int GetHashCode()
        {
            int hash = 17;

            hash = hash * 23 + EntityID.GetHashCode();
            hash = hash * 23 + EpisodeNumber.GetHashCode();
            hash = hash * 23 + ErrorCode.GetHashCode();
            hash = hash * 23 + ErrorMesg.GetHashCode();
            hash = hash * 23 + Facility.GetHashCode();
            hash = hash * 23 + OptionId.GetHashCode();
            hash = hash * 23 + OptionStaffId.GetHashCode();
            hash = hash * 23 + OptionUserId.GetHashCode();
            hash = hash * 23 + SystemCode.GetHashCode();
            foreach (var form in this.Forms)
            {
                hash = hash * 23 + form.GetHashCode();
            }
            return(hash);
        }