예제 #1
0
 internal static void CheckHelper(CompressedStack cs, PermissionSet grantedSet, PermissionSet refusedSet, CodeAccessPermission demand, PermissionToken permToken, RuntimeMethodHandleInternal rmh, RuntimeAssembly asm, SecurityAction action)
 {
     if (cs != null)
     {
         cs.CheckDemand(demand, permToken, rmh);
         return;
     }
     CodeAccessSecurityEngine.CheckHelper(grantedSet, refusedSet, demand, permToken, rmh, asm, action, true);
 }
 internal static void CheckHelper(CompressedStack cs,
                                  PermissionSet grantedSet,
                                  PermissionSet refusedSet,
                                  CodeAccessPermission demand,
                                  PermissionToken permToken,
                                  RuntimeMethodHandle rmh,
                                  Assembly asm,
                                  SecurityAction action)
 {
     if (cs != null)
     {
         cs.CheckDemand(demand, permToken, rmh);
     }
     else
     {
         CheckHelper(grantedSet, refusedSet, demand, permToken, rmh, (Object)asm, action, true);
     }
 }