コード例 #1
0
    public override string ToString()
    {
        var  sb      = new StringBuilder("TMessageReadRangeEntry(");
        bool __first = true;

        if (__isset.startMessageId)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("StartMessageId: ");
            StartMessageId.ToString(sb);
        }
        if (__isset.endMessageId)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("EndMessageId: ");
            EndMessageId.ToString(sb);
        }
        if (__isset.startTime)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("StartTime: ");
            StartTime.ToString(sb);
        }
        if (__isset.endTime)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("EndTime: ");
            EndTime.ToString(sb);
        }
        sb.Append(")");
        return(sb.ToString());
    }
コード例 #2
0
    public override int GetHashCode()
    {
        int hashcode = 157;

        unchecked {
            if (__isset.startMessageId)
            {
                hashcode = (hashcode * 397) + StartMessageId.GetHashCode();
            }
            if (__isset.endMessageId)
            {
                hashcode = (hashcode * 397) + EndMessageId.GetHashCode();
            }
            if (__isset.startTime)
            {
                hashcode = (hashcode * 397) + StartTime.GetHashCode();
            }
            if (__isset.endTime)
            {
                hashcode = (hashcode * 397) + EndTime.GetHashCode();
            }
        }
        return(hashcode);
    }