Ejemplo n.º 1
0
        public override string ToString()
        {
            StringBuilder sb = new StringBuilder("Grouping(");

            sb.Append("Fields: ");
            sb.Append(Fields);
            sb.Append(",Shuffle: ");
            sb.Append(Shuffle == null ? "<null>" : Shuffle.ToString());
            sb.Append(",All: ");
            sb.Append(All == null ? "<null>" : All.ToString());
            sb.Append(",None: ");
            sb.Append(None == null ? "<null>" : None.ToString());
            sb.Append(",Direct: ");
            sb.Append(Direct == null ? "<null>" : Direct.ToString());
            sb.Append(",Custom_object: ");
            sb.Append(Custom_object == null ? "<null>" : Custom_object.ToString());
            sb.Append(",Custom_serialized: ");
            sb.Append(Custom_serialized);
            sb.Append(",Local_or_shuffle: ");
            sb.Append(Local_or_shuffle == null ? "<null>" : Local_or_shuffle.ToString());
            sb.Append(")");
            return(sb.ToString());
        }
Ejemplo n.º 2
0
    public override string ToString()
    {
        StringBuilder __sb    = new StringBuilder("Grouping(");
        bool          __first = true;

        if (Fields != null && __isset.fields)
        {
            if (!__first)
            {
                __sb.Append(", ");
            }
            __first = false;
            __sb.Append("Fields: ");
            __sb.Append(Fields);
        }
        if (Shuffle != null && __isset.shuffle)
        {
            if (!__first)
            {
                __sb.Append(", ");
            }
            __first = false;
            __sb.Append("Shuffle: ");
            __sb.Append(Shuffle == null ? "<null>" : Shuffle.ToString());
        }
        if (All != null && __isset.all)
        {
            if (!__first)
            {
                __sb.Append(", ");
            }
            __first = false;
            __sb.Append("All: ");
            __sb.Append(All == null ? "<null>" : All.ToString());
        }
        if (None != null && __isset.none)
        {
            if (!__first)
            {
                __sb.Append(", ");
            }
            __first = false;
            __sb.Append("None: ");
            __sb.Append(None == null ? "<null>" : None.ToString());
        }
        if (Direct != null && __isset.direct)
        {
            if (!__first)
            {
                __sb.Append(", ");
            }
            __first = false;
            __sb.Append("Direct: ");
            __sb.Append(Direct == null ? "<null>" : Direct.ToString());
        }
        if (Custom_object != null && __isset.custom_object)
        {
            if (!__first)
            {
                __sb.Append(", ");
            }
            __first = false;
            __sb.Append("Custom_object: ");
            __sb.Append(Custom_object == null ? "<null>" : Custom_object.ToString());
        }
        if (Custom_serialized != null && __isset.custom_serialized)
        {
            if (!__first)
            {
                __sb.Append(", ");
            }
            __first = false;
            __sb.Append("Custom_serialized: ");
            __sb.Append(Custom_serialized);
        }
        if (Local_or_shuffle != null && __isset.local_or_shuffle)
        {
            if (!__first)
            {
                __sb.Append(", ");
            }
            __first = false;
            __sb.Append("Local_or_shuffle: ");
            __sb.Append(Local_or_shuffle == null ? "<null>" : Local_or_shuffle.ToString());
        }
        __sb.Append(")");
        return(__sb.ToString());
    }