}                                     //Key

        public override int GetHashCode()
        {
            unchecked
            {
                int result = IdRole.GetHashCode();
                result = (IdRole * 397) ^ IdPermission.GetHashCode();
                return(result);
            }
        }
Beispiel #2
0
        public override int GetHashCode()
        {
            var hashCode = 2065429282;

            hashCode = hashCode * -1521134295 + IdRole.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(RoleName);

            return(hashCode);
        }
        }                                    //Key

        public override int GetHashCode()
        {
            unchecked
            {
                int result = IdRole.GetHashCode();
                result = (IdRole * 397) ^ IdUserLogin.GetHashCode();
                return(result);
            }
        }