Пример #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Id.Length != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (Lat != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Lat);
            }
            if (Lon != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Lon);
            }
            if (Alt != 0)
            {
                hash ^= Alt.GetHashCode();
            }
            if (LockScreenMessage.Length != 0)
            {
                hash ^= LockScreenMessage.GetHashCode();
            }
            if (localizedLockScreenMessage_ != null)
            {
                hash ^= LocalizedLockScreenMessage.GetHashCode();
            }
            if (Position != 0)
            {
                hash ^= Position.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Пример #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Id.Length != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (Uuid.Length != 0)
            {
                hash ^= Uuid.GetHashCode();
            }
            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (Major != 0)
            {
                hash ^= Major.GetHashCode();
            }
            if (Minor != 0)
            {
                hash ^= Minor.GetHashCode();
            }
            if (LockScreenMessage.Length != 0)
            {
                hash ^= LockScreenMessage.GetHashCode();
            }
            if (localizedLockScreenMessage_ != null)
            {
                hash ^= LocalizedLockScreenMessage.GetHashCode();
            }
            if (Position != 0)
            {
                hash ^= Position.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }