Beispiel #1
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);
        }
Beispiel #2
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);
        }