예제 #1
0
        public override string ToString()
        {
            var sb    = new StringBuilder("VersioningTestV1(");
            int tmp72 = 0;

            if (__isset.begin_in_both)
            {
                if (0 < tmp72++)
                {
                    sb.Append(", ");
                }
                sb.Append("Begin_in_both: ");
                Begin_in_both.ToString(sb);
            }
            if ((Old_string != null) && __isset.old_string)
            {
                if (0 < tmp72++)
                {
                    sb.Append(", ");
                }
                sb.Append("Old_string: ");
                Old_string.ToString(sb);
            }
            if (__isset.end_in_both)
            {
                if (0 < tmp72++)
                {
                    sb.Append(", ");
                }
                sb.Append("End_in_both: ");
                End_in_both.ToString(sb);
            }
            sb.Append(')');
            return(sb.ToString());
        }
예제 #2
0
        public override int GetHashCode()
        {
            int hashcode = 157;

            unchecked {
                if (__isset.begin_in_both)
                {
                    hashcode = (hashcode * 397) + Begin_in_both.GetHashCode();
                }
                if (__isset.newint)
                {
                    hashcode = (hashcode * 397) + Newint.GetHashCode();
                }
                if (__isset.newbyte)
                {
                    hashcode = (hashcode * 397) + Newbyte.GetHashCode();
                }
                if (__isset.newshort)
                {
                    hashcode = (hashcode * 397) + Newshort.GetHashCode();
                }
                if (__isset.newlong)
                {
                    hashcode = (hashcode * 397) + Newlong.GetHashCode();
                }
                if (__isset.newdouble)
                {
                    hashcode = (hashcode * 397) + Newdouble.GetHashCode();
                }
                if ((Newstruct != null) && __isset.newstruct)
                {
                    hashcode = (hashcode * 397) + Newstruct.GetHashCode();
                }
                if ((Newlist != null) && __isset.newlist)
                {
                    hashcode = (hashcode * 397) + TCollections.GetHashCode(Newlist);
                }
                if ((Newset != null) && __isset.newset)
                {
                    hashcode = (hashcode * 397) + TCollections.GetHashCode(Newset);
                }
                if ((Newmap != null) && __isset.newmap)
                {
                    hashcode = (hashcode * 397) + TCollections.GetHashCode(Newmap);
                }
                if ((Newstring != null) && __isset.newstring)
                {
                    hashcode = (hashcode * 397) + Newstring.GetHashCode();
                }
                if (__isset.end_in_both)
                {
                    hashcode = (hashcode * 397) + End_in_both.GetHashCode();
                }
            }
            return(hashcode);
        }
예제 #3
0
        public override int GetHashCode()
        {
            int hashcode = 157;

            unchecked {
                if (__isset.begin_in_both)
                {
                    hashcode = (hashcode * 397) + Begin_in_both.GetHashCode();
                }
                if ((Old_string != null) && __isset.old_string)
                {
                    hashcode = (hashcode * 397) + Old_string.GetHashCode();
                }
                if (__isset.end_in_both)
                {
                    hashcode = (hashcode * 397) + End_in_both.GetHashCode();
                }
            }
            return(hashcode);
        }
예제 #4
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());
        }