Exemplo n.º 1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Id.Length != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (Username.Length != 0)
            {
                hash ^= Username.GetHashCode();
            }
            if (Email.Length != 0)
            {
                hash ^= Email.GetHashCode();
            }
            if (YearOfBirth != 0)
            {
                hash ^= YearOfBirth.GetHashCode();
            }
            if (LibraryId.Length != 0)
            {
                hash ^= LibraryId.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Exemplo n.º 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Id.Length != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (Motto.Length != 0)
            {
                hash ^= Motto.GetHashCode();
            }
            if (YearOfBirth != 0)
            {
                hash ^= YearOfBirth.GetHashCode();
            }
            if (CareerStartYear != 0)
            {
                hash ^= CareerStartYear.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }