internal PermissionSet ResolveHelper (Evidence evidence) {
PermissionSet grant = null;
if (IsGacAssembly(evidence)) {
// GAC assemblies get FullTrust
grant = new PermissionSet(PermissionState.Unrestricted);
}
else {
{
// Resolve the CAS policy levels on the machine
grant = CodeGroupResolve(evidence, false);
}
}
return grant;
}