CodeGroupResolve() private method

private CodeGroupResolve ( Evidence evidence, bool systemPolicy ) : PermissionSet
evidence System.Security.Policy.Evidence
systemPolicy bool
return PermissionSet
        //
        // 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));
        }
        public static PermissionSet ResolveSystemPolicy(Evidence evidence)
        {
            if (!AppDomain.CurrentDomain.IsLegacyCasPolicyEnabled)
            {
                throw new NotSupportedException(Environment.GetResourceString("NotSupported_RequiresCasPolicyExplicit"));
            }

            if (PolicyManager.IsGacAssembly(evidence))
            {
                return(new PermissionSet(PermissionState.Unrestricted));
            }

            return(polmgr.CodeGroupResolve(evidence, true));
        }