Exemple #1
0
        public override string ToString()
        {
            StringBuilder sb = new StringBuilder("TColumnValue(");

            sb.Append("BoolVal: ");
            sb.Append(BoolVal == null ? "<null>" : BoolVal.ToString());
            sb.Append(",ByteVal: ");
            sb.Append(ByteVal == null ? "<null>" : ByteVal.ToString());
            sb.Append(",I16Val: ");
            sb.Append(I16Val == null ? "<null>" : I16Val.ToString());
            sb.Append(",I32Val: ");
            sb.Append(I32Val == null ? "<null>" : I32Val.ToString());
            sb.Append(",I64Val: ");
            sb.Append(I64Val == null ? "<null>" : I64Val.ToString());
            sb.Append(",DoubleVal: ");
            sb.Append(DoubleVal == null ? "<null>" : DoubleVal.ToString());
            sb.Append(",StringVal: ");
            sb.Append(StringVal == null ? "<null>" : StringVal.ToString());
            sb.Append(")");
            return(sb.ToString());
        }
Exemple #2
0
        public override string ToString()
        {
            var  sb      = new StringBuilder("TColumn(");
            bool __first = true;

            if (BoolVal != null && __isset.boolVal)
            {
                if (!__first)
                {
                    sb.Append(", ");
                }
                __first = false;
                sb.Append("BoolVal: ");
                sb.Append(BoolVal == null ? "<null>" : BoolVal.ToString());
            }
            if (ByteVal != null && __isset.byteVal)
            {
                if (!__first)
                {
                    sb.Append(", ");
                }
                __first = false;
                sb.Append("ByteVal: ");
                sb.Append(ByteVal == null ? "<null>" : ByteVal.ToString());
            }
            if (I16Val != null && __isset.i16Val)
            {
                if (!__first)
                {
                    sb.Append(", ");
                }
                __first = false;
                sb.Append("I16Val: ");
                sb.Append(I16Val == null ? "<null>" : I16Val.ToString());
            }
            if (I32Val != null && __isset.i32Val)
            {
                if (!__first)
                {
                    sb.Append(", ");
                }
                __first = false;
                sb.Append("I32Val: ");
                sb.Append(I32Val == null ? "<null>" : I32Val.ToString());
            }
            if (I64Val != null && __isset.i64Val)
            {
                if (!__first)
                {
                    sb.Append(", ");
                }
                __first = false;
                sb.Append("I64Val: ");
                sb.Append(I64Val == null ? "<null>" : I64Val.ToString());
            }
            if (DoubleVal != null && __isset.doubleVal)
            {
                if (!__first)
                {
                    sb.Append(", ");
                }
                __first = false;
                sb.Append("DoubleVal: ");
                sb.Append(DoubleVal == null ? "<null>" : DoubleVal.ToString());
            }
            if (StringVal != null && __isset.stringVal)
            {
                if (!__first)
                {
                    sb.Append(", ");
                }
                __first = false;
                sb.Append("StringVal: ");
                sb.Append(StringVal == null ? "<null>" : StringVal.ToString());
            }
            if (BinaryVal != null && __isset.binaryVal)
            {
                if (!__first)
                {
                    sb.Append(", ");
                }
                __first = false;
                sb.Append("BinaryVal: ");
                sb.Append(BinaryVal == null ? "<null>" : BinaryVal.ToString());
            }
            sb.Append(")");
            return(sb.ToString());
        }