public override bool IsSubsetOf(IPermission target) {
// Pattern suggested by Security engine
if (target == null) {
return m_noRestriction == false;
}
DnsPermission other = target as DnsPermission;
if (other == null) {
throw new ArgumentException(SR.GetString(SR.net_perm_target), "target");
}
//Here is the matrix of result based on m_noRestriction for me and she
// me.noRestriction she.noRestriction me.isSubsetOf(she)
// 0 0 1
// 0 1 1
// 1 0 0
// 1 1 1
return (!m_noRestriction || other.m_noRestriction);
}