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

            unchecked {
                if (isset.objectName)
                {
                    hashcode = (hashcode * 397) + ObjectName.GetHashCode();
                }
                if (isset.objectType)
                {
                    hashcode = (hashcode * 397) + ObjectType.GetHashCode();
                }
                if (isset.privs)
                {
                    hashcode = (hashcode * 397) + TCollections.GetHashCode(Privs);
                }
                if (isset.grantee)
                {
                    hashcode = (hashcode * 397) + Grantee.GetHashCode();
                }
                if (isset.privilegeObjectType)
                {
                    hashcode = (hashcode * 397) + PrivilegeObjectType.GetHashCode();
                }
            }
            return(hashcode);
        }
Exemplo n.º 2
0
 public override int GetHashCode()
 {
     return(Grantee.GetHashCode() * 419 + Permission.GetHashCode());
 }