System.Security.CodeAccessSecurityEngine.LazyCheckSetHelper C# (CSharp) Method

LazyCheckSetHelper() private static method

private static LazyCheckSetHelper ( PermissionSet demands, IntPtr asmSecDesc, RuntimeMethodHandle rmh, Assembly assembly, SecurityAction action ) : void
demands PermissionSet
asmSecDesc System.IntPtr
rmh System.RuntimeMethodHandle
assembly System.Reflection.Assembly
action SecurityAction
return void
        private static void LazyCheckSetHelper(PermissionSet demands,
                                               IntPtr asmSecDesc,
                                               RuntimeMethodHandle rmh,
                                               Assembly assembly,
                                               SecurityAction action)
        {
            if (demands.CanUnrestrictedOverride())
                return;

            PermissionSet grants;
            PermissionSet refused;

            _GetGrantedPermissionSet( asmSecDesc, out grants, out refused );

            CheckSetHelper( grants, refused, demands, rmh, (Object)assembly, action, true );
        }