示例#1
0
        public override string ToString()
        {
            var sb   = new StringBuilder("Result(");
            int tmp5 = 0;

            if ((Exceptionstr != null) && __isset.exceptionstr)
            {
                if (0 < tmp5++)
                {
                    sb.Append(", ");
                }
                sb.Append("Exceptionstr: ");
                Exceptionstr.ToString(sb);
            }
            if ((ErrorMessage != null) && __isset.errorMessage)
            {
                if (0 < tmp5++)
                {
                    sb.Append(", ");
                }
                sb.Append("ErrorMessage: ");
                ErrorMessage.ToString(sb);
            }
            if ((ErrorCode != null) && __isset.errorCode)
            {
                if (0 < tmp5++)
                {
                    sb.Append(", ");
                }
                sb.Append("ErrorCode: ");
                ErrorCode.ToString(sb);
            }
            if (__isset.severity)
            {
                if (0 < tmp5++)
                {
                    sb.Append(", ");
                }
                sb.Append("Severity: ");
                Severity.ToString(sb);
            }
            sb.Append(')');
            return(sb.ToString());
        }
示例#2
0
        public override int GetHashCode()
        {
            int hashcode = 157;

            unchecked {
                if ((Exceptionstr != null) && __isset.exceptionstr)
                {
                    hashcode = (hashcode * 397) + Exceptionstr.GetHashCode();
                }
                if ((ErrorMessage != null) && __isset.errorMessage)
                {
                    hashcode = (hashcode * 397) + ErrorMessage.GetHashCode();
                }
                if ((ErrorCode != null) && __isset.errorCode)
                {
                    hashcode = (hashcode * 397) + ErrorCode.GetHashCode();
                }
                if (__isset.severity)
                {
                    hashcode = (hashcode * 397) + Severity.GetHashCode();
                }
            }
            return(hashcode);
        }