public override int GetHashCode()
        {
            int hash = 1;

            if (Num1 != 0)
            {
                hash ^= Num1.GetHashCode();
            }
            if (Num2 != 0)
            {
                hash ^= Num2.GetHashCode();
            }
            return(hash);
        }
Exemplo n.º 2
0
            public override int GetHashCode()
            {
                int hashcode = 157;

                unchecked {
                    if (__isset.num1)
                    {
                        hashcode = (hashcode * 397) + Num1.GetHashCode();
                    }
                    if (__isset.num2)
                    {
                        hashcode = (hashcode * 397) + Num2.GetHashCode();
                    }
                }
                return(hashcode);
            }
Exemplo n.º 3
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Num1 != 0)
            {
                hash ^= Num1.GetHashCode();
            }
            if (Num2 != 0)
            {
                hash ^= Num2.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Exemplo n.º 4
0
        public override int GetHashCode()
        {
            int hashcode = 157;

            unchecked {
                if (__isset.num1)
                {
                    hashcode = (hashcode * 397) + Num1.GetHashCode();
                }
                if (__isset.num2)
                {
                    hashcode = (hashcode * 397) + Num2.GetHashCode();
                }
                if (__isset.op)
                {
                    hashcode = (hashcode * 397) + Op.GetHashCode();
                }
                if ((Comment != null) && __isset.comment)
                {
                    hashcode = (hashcode * 397) + Comment.GetHashCode();
                }
            }
            return(hashcode);
        }