private PermissionRequestEvidence GeneratePermissionRequestEvidence() { PermissionSet permissionSet = null; PermissionSet permissionSet2 = null; PermissionSet permissionSet3 = null; AssemblyEvidenceFactory.GetAssemblyPermissionRequests(this.m_targetAssembly.GetNativeHandle(), JitHelpers.GetObjectHandleOnStack <PermissionSet>(ref permissionSet), JitHelpers.GetObjectHandleOnStack <PermissionSet>(ref permissionSet2), JitHelpers.GetObjectHandleOnStack <PermissionSet>(ref permissionSet3)); if (permissionSet != null || permissionSet2 != null || permissionSet3 != null) { return(new PermissionRequestEvidence(permissionSet, permissionSet2, permissionSet3)); } return(null); }
private PermissionRequestEvidence GeneratePermissionRequestEvidence() { PermissionSet o1 = (PermissionSet)null; PermissionSet o2 = (PermissionSet)null; PermissionSet o3 = (PermissionSet)null; AssemblyEvidenceFactory.GetAssemblyPermissionRequests(this.m_targetAssembly.GetNativeHandle(), JitHelpers.GetObjectHandleOnStack <PermissionSet>(ref o1), JitHelpers.GetObjectHandleOnStack <PermissionSet>(ref o2), JitHelpers.GetObjectHandleOnStack <PermissionSet>(ref o3)); if (o1 != null || o2 != null || o3 != null) { return(new PermissionRequestEvidence(o1, o2, o3)); } return((PermissionRequestEvidence)null); }