Is there any alternative to .net framework EmitCalli for netcoreapp1.0
if (IntPtr.Size == 4)
il.Emit(OpCodes.Ldc_I4, ptr.ToInt32());
else if (IntPtr.Size == 8)
il.Emit(OpCodes.Ldc_I8, ptr.ToInt64());
il.EmitCalli(OpCodes.Calli, CallingConvention.Cdecl, returnType, paramTypes);
Aucun commentaire:
Enregistrer un commentaire