public override int GetHashCode()
    {
        int hash = 1;

        if (Playerid != 0)
        {
            hash ^= Playerid.GetHashCode();
        }
        if (Name.Length != 0)
        {
            hash ^= Name.GetHashCode();
        }
        if (Roleid != 0)
        {
            hash ^= Roleid.GetHashCode();
        }
        if (Seat != 0)
        {
            hash ^= Seat.GetHashCode();
        }
        if (_unknownFields != null)
        {
            hash ^= _unknownFields.GetHashCode();
        }
        return(hash);
    }
示例#2
0
        public override int GetHashCode()
        {
            const int prime  = 31;
            int       result = 1;

            result = prime * result + ((string.ReferenceEquals(Roleid, null)) ? 0 : Roleid.GetHashCode());
            result = prime * result + ((string.ReferenceEquals(Permissionid, null)) ? 0 : Permissionid.GetHashCode());
            return(result);
        }