コード例 #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Num1 != 0)
            {
                hash ^= Num1.GetHashCode();
            }
            if (Num2 != 0)
            {
                hash ^= Num2.GetHashCode();
            }
            return(hash);
        }
コード例 #2
0
ファイル: ThirdCalculator.cs プロジェクト: zzskyhot/surging
            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);
            }
コード例 #3
0
ファイル: Msg.cs プロジェクト: winv/microservice
        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);
        }
コード例 #4
0
ファイル: Work.cs プロジェクト: wutao0315/zooland
        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);
        }