protected static byte[] ReadILs(CorMethodInfo methodInfo) { byte[] byteILs; byteILs = new byte[methodInfo.ILCodeSize]; MarshalEx.Read(methodInfo.ILCode, byteILs); return(byteILs); }
protected CORINFO_EH_CLAUSE[] GetAllExceptionHandlers(void *pICorJitInfo, CorMethodInfo methodInfo) { CORINFO_EH_CLAUSE[] clauses; if (methodInfo.ExceptionHandlerCount == 0) { return(null); } clauses = new CORINFO_EH_CLAUSE[methodInfo.ExceptionHandlerCount]; for (uint i = 0; i < clauses.Length; i++) { GetEHInfo(pICorJitInfo, methodInfo.MethodHandle, i, out clauses[i]); } return(clauses); }