ToString() public method

public ToString ( ) : string
return string
示例#1
0
        public override string ToString()
        {
            StringBuilder sb = new StringBuilder("ColumnOrSuperColumn(");

            sb.Append("Column: ");
            sb.Append(Column == null ? "<null>" : Column.ToString());
            sb.Append(",Super_column: ");
            sb.Append(Super_column == null ? "<null>" : Super_column.ToString());
            sb.Append(")");
            return(sb.ToString());
        }
        public override string ToString()
        {
            StringBuilder __sb    = new StringBuilder("ColumnOrSuperColumn(");
            bool          __first = true;

            if (Column != null && __isset.column)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("Column: ");
                __sb.Append(Column == null ? "<null>" : Column.ToString());
            }
            if (Super_column != null && __isset.super_column)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("Super_column: ");
                __sb.Append(Super_column == null ? "<null>" : Super_column.ToString());
            }
            if (Counter_column != null && __isset.counter_column)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("Counter_column: ");
                __sb.Append(Counter_column == null ? "<null>" : Counter_column.ToString());
            }
            if (Counter_super_column != null && __isset.counter_super_column)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("Counter_super_column: ");
                __sb.Append(Counter_super_column == null ? "<null>" : Counter_super_column.ToString());
            }
            __sb.Append(")");
            return(__sb.ToString());
        }