Beispiel #1
0
        public override string ToString()
        {
            var sb    = new StringBuilder("VersioningTestV2(");
            int tmp87 = 0;

            if (__isset.begin_in_both)
            {
                if (0 < tmp87++)
                {
                    sb.Append(", ");
                }
                sb.Append("Begin_in_both: ");
                Begin_in_both.ToString(sb);
            }
            if (__isset.newint)
            {
                if (0 < tmp87++)
                {
                    sb.Append(", ");
                }
                sb.Append("Newint: ");
                Newint.ToString(sb);
            }
            if (__isset.newbyte)
            {
                if (0 < tmp87++)
                {
                    sb.Append(", ");
                }
                sb.Append("Newbyte: ");
                Newbyte.ToString(sb);
            }
            if (__isset.newshort)
            {
                if (0 < tmp87++)
                {
                    sb.Append(", ");
                }
                sb.Append("Newshort: ");
                Newshort.ToString(sb);
            }
            if (__isset.newlong)
            {
                if (0 < tmp87++)
                {
                    sb.Append(", ");
                }
                sb.Append("Newlong: ");
                Newlong.ToString(sb);
            }
            if (__isset.newdouble)
            {
                if (0 < tmp87++)
                {
                    sb.Append(", ");
                }
                sb.Append("Newdouble: ");
                Newdouble.ToString(sb);
            }
            if ((Newstruct != null) && __isset.newstruct)
            {
                if (0 < tmp87++)
                {
                    sb.Append(", ");
                }
                sb.Append("Newstruct: ");
                Newstruct.ToString(sb);
            }
            if ((Newlist != null) && __isset.newlist)
            {
                if (0 < tmp87++)
                {
                    sb.Append(", ");
                }
                sb.Append("Newlist: ");
                Newlist.ToString(sb);
            }
            if ((Newset != null) && __isset.newset)
            {
                if (0 < tmp87++)
                {
                    sb.Append(", ");
                }
                sb.Append("Newset: ");
                Newset.ToString(sb);
            }
            if ((Newmap != null) && __isset.newmap)
            {
                if (0 < tmp87++)
                {
                    sb.Append(", ");
                }
                sb.Append("Newmap: ");
                Newmap.ToString(sb);
            }
            if ((Newstring != null) && __isset.newstring)
            {
                if (0 < tmp87++)
                {
                    sb.Append(", ");
                }
                sb.Append("Newstring: ");
                Newstring.ToString(sb);
            }
            if (__isset.end_in_both)
            {
                if (0 < tmp87++)
                {
                    sb.Append(", ");
                }
                sb.Append("End_in_both: ");
                End_in_both.ToString(sb);
            }
            sb.Append(')');
            return(sb.ToString());
        }
Beispiel #2
0
        public override string ToString()
        {
            StringBuilder __sb    = new StringBuilder("VersioningTestV2(");
            bool          __first = true;

            if (__isset.begin_in_both)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("Begin_in_both: ");
                __sb.Append(Begin_in_both);
            }
            if (__isset.newint)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("Newint: ");
                __sb.Append(Newint);
            }
            if (__isset.newbyte)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("Newbyte: ");
                __sb.Append(Newbyte);
            }
            if (__isset.newshort)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("Newshort: ");
                __sb.Append(Newshort);
            }
            if (__isset.newlong)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("Newlong: ");
                __sb.Append(Newlong);
            }
            if (__isset.newdouble)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("Newdouble: ");
                __sb.Append(Newdouble);
            }
            if (Newstruct != null && __isset.newstruct)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("Newstruct: ");
                __sb.Append(Newstruct == null ? "<null>" : Newstruct.ToString());
            }
            if (Newlist != null && __isset.newlist)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("Newlist: ");
                __sb.Append(Newlist);
            }
            if (Newset != null && __isset.newset)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("Newset: ");
                __sb.Append(Newset);
            }
            if (Newmap != null && __isset.newmap)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("Newmap: ");
                __sb.Append(Newmap);
            }
            if (Newstring != null && __isset.newstring)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("Newstring: ");
                __sb.Append(Newstring);
            }
            if (__isset.end_in_both)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("End_in_both: ");
                __sb.Append(End_in_both);
            }
            __sb.Append(")");
            return(__sb.ToString());
        }