[API Proposal]: IL Emit support for FunctionPointer #75348
Labels
api-needs-work
API needs work before it is approved, it is NOT ready for implementation
area-System.Reflection.Emit
Cost:M
Work that requires one engineer up to 2 weeks
Milestone
[primarily a placeholder for now for planning]
This adds invoke capability to function pointers, layering on See also #69273 and #75347.
Overloads will be added to
ILGenerator.EmitCalli()
to support new calling conventions that are modifier-based instead of enum-based. The enum-based calling conventions throughSystem.Runtime.InteropServices.CallingConvention
have not scaled well thus specifying "CallConv" types from theSystem.Runtime.InteropServices
is assumed. Currently these include:The new APIs may likely take a proposed
MethodSignature
class from #75347.The text was updated successfully, but these errors were encountered: