IsGacAssembly() 정적인 개인적인 메소드

static private IsGacAssembly ( Evidence evidence ) : bool
evidence System.Security.Policy.Evidence
리턴 bool
        //
        // 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(SecurityManager.polmgr.CodeGroupResolve(evidence, true));
 }