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

            if (HasAgentId)
            {
                hash ^= AgentId.GetHashCode();
            }
            if (HasUserDescription)
            {
                hash ^= UserDescription.GetHashCode();
            }
            if (HasProgram)
            {
                hash ^= Program.GetHashCode();
            }
            if (HasUserOptions)
            {
                hash ^= UserOptions.GetHashCode();
            }
            if (HasClubOptions)
            {
                hash ^= ClubOptions.GetHashCode();
            }
            hash ^= (int)typeCase_;
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Example #2
0
        public override int GetHashCode()
        {
            int result = 1;

            result = (result * 397) ^ Category.GetHashCode();
            result = (result * 397) ^ CreatedOn.GetHashCode();
            result = (result * 397) ^ Id.GetHashCode();
            result = (result * 397) ^ (Information != null ? Information.GetHashCode() : 0);
            result = (result * 397) ^ (UserDescription != null ? UserDescription.GetHashCode() : 0);
            result = (result * 397) ^ (Username != null ? Username.GetHashCode() : 0);
            return(result);
        }