if (pdwStubFlags == NULL)
return pComInfo;
- pMD->ComputeSuppressUnmanagedCodeAccessAttr(pMD->GetMDImport());
-
//
// Compute NDirectStubFlags
//
}
#endif // !CROSSGEN_COMPILE
-//*******************************************************************************
-void MethodDesc::ComputeSuppressUnmanagedCodeAccessAttr(IMDInternalImport *pImport)
-{
- CONTRACTL
- {
- THROWS;
- GC_NOTRIGGER;
- FORBID_FAULT;
- }
- CONTRACTL_END;
-
-}
-
//*******************************************************************************
BOOL MethodDesc::HasNativeCallableAttribute()
{
return GetMethodTable()->IsInterface();
}
- void ComputeSuppressUnmanagedCodeAccessAttr(IMDInternalImport *pImport);
BOOL HasNativeCallableAttribute();
#ifdef FEATURE_COMINTEROP
if (IsMdStatic(dwMemberAttrs))
pNewMD->SetStatic();
- // Set suppress unmanaged code access permission attribute
-
- if (pNewMD->IsNDirect())
- pNewMD->ComputeSuppressUnmanagedCodeAccessAttr(pIMDII);
-
#ifdef _DEBUG
// Mark as many methods as synchronized as possible.
//