예제 #1
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);
        }
예제 #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Severity != 0)
            {
                hash ^= Severity.GetHashCode();
            }
            if (Code != 0)
            {
                hash ^= Code.GetHashCode();
            }
            if (SqlState.Length != 0)
            {
                hash ^= SqlState.GetHashCode();
            }
            if (Msg.Length != 0)
            {
                hash ^= Msg.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.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);
        }