Пример #1
0
 public override int GetHashCode()
 {
     #if NETSTANDARD2_1
     return(HashCode.Combine(SolutionId, PuzzleIdent));
     #else
     return(SolutionId.GetHashCode() << 4 ^ PuzzleIdent.GetHashCode());
     #endif
 }
Пример #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Width != 0)
            {
                hash ^= Width.GetHashCode();
            }
            if (Height != 0)
            {
                hash ^= Height.GetHashCode();
            }
            if (ChannelCount != 0)
            {
                hash ^= ChannelCount.GetHashCode();
            }
            if (Raw.Length != 0)
            {
                hash ^= Raw.GetHashCode();
            }
            hash ^= rois_.GetHashCode();
            if (SolutionId != 0)
            {
                hash ^= SolutionId.GetHashCode();
            }
            if (ErrorId != 0)
            {
                hash ^= ErrorId.GetHashCode();
            }
            if (Key.Length != 0)
            {
                hash ^= Key.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }