//
// This method resolves the policy for the specified evidence, but it
// ignores the AppDomain level even when one is available in the current policy.
//
public static PermissionSet ResolveSystemPolicy(Evidence evidence)
{
if (PolicyManager.IsGacAssembly(evidence))
{
return(new PermissionSet(PermissionState.Unrestricted));
}
return(polmgr.CodeGroupResolve(evidence, true));
}