예제 #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (FirstNumber != 0)
            {
                hash ^= FirstNumber.GetHashCode();
            }
            if (SecondNumber != 0)
            {
                hash ^= SecondNumber.GetHashCode();
            }
            if (ThirdNumber != 0)
            {
                hash ^= ThirdNumber.GetHashCode();
            }
            if (FourthNumber != 0)
            {
                hash ^= FourthNumber.GetHashCode();
            }
            if (FifthNumber != 0)
            {
                hash ^= FifthNumber.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
예제 #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (FirstNumber.Length != 0)
            {
                hash ^= FirstNumber.GetHashCode();
            }
            if (LastNumber.Length != 0)
            {
                hash ^= LastNumber.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }