Exemplo n.º 1
0
    public override int GetHashCode()
    {
        int hashcode = 157;

        unchecked {
            if (__isset.field_id)
            {
                hashcode = (hashcode * 397) + Field_id.GetHashCode();
            }
            if (__isset.v_int64)
            {
                hashcode = (hashcode * 397) + V_int64.GetHashCode();
            }
            if (__isset.v_double)
            {
                hashcode = (hashcode * 397) + V_double.GetHashCode();
            }
            if ((V_bytes != null) && __isset.v_bytes)
            {
                hashcode = (hashcode * 397) + V_bytes.GetHashCode();
            }
            if ((V_key != null) && __isset.v_key)
            {
                hashcode = (hashcode * 397) + V_key.GetHashCode();
            }
            if ((V_li != null) && __isset.v_li)
            {
                hashcode = (hashcode * 397) + TCollections.GetHashCode(V_li);
            }
            if ((V_lb != null) && __isset.v_lb)
            {
                hashcode = (hashcode * 397) + TCollections.GetHashCode(V_lb);
            }
        }
        return(hashcode);
    }
Exemplo n.º 2
0
    public override string ToString()
    {
        var tmp258 = new StringBuilder("CellValueSerial(");
        int tmp259 = 0;

        if (__isset.field_id)
        {
            if (0 < tmp259++)
            {
                tmp258.Append(", ");
            }
            tmp258.Append("Field_id: ");
            Field_id.ToString(tmp258);
        }
        if (__isset.v_int64)
        {
            if (0 < tmp259++)
            {
                tmp258.Append(", ");
            }
            tmp258.Append("V_int64: ");
            V_int64.ToString(tmp258);
        }
        if (__isset.v_double)
        {
            if (0 < tmp259++)
            {
                tmp258.Append(", ");
            }
            tmp258.Append("V_double: ");
            V_double.ToString(tmp258);
        }
        if ((V_bytes != null) && __isset.v_bytes)
        {
            if (0 < tmp259++)
            {
                tmp258.Append(", ");
            }
            tmp258.Append("V_bytes: ");
            V_bytes.ToString(tmp258);
        }
        if ((V_key != null) && __isset.v_key)
        {
            if (0 < tmp259++)
            {
                tmp258.Append(", ");
            }
            tmp258.Append("V_key: ");
            V_key.ToString(tmp258);
        }
        if ((V_li != null) && __isset.v_li)
        {
            if (0 < tmp259++)
            {
                tmp258.Append(", ");
            }
            tmp258.Append("V_li: ");
            V_li.ToString(tmp258);
        }
        if ((V_lb != null) && __isset.v_lb)
        {
            if (0 < tmp259++)
            {
                tmp258.Append(", ");
            }
            tmp258.Append("V_lb: ");
            V_lb.ToString(tmp258);
        }
        tmp258.Append(')');
        return(tmp258.ToString());
    }