Skip to content

[API Proposal]: IL Emit support for FunctionPointer #75348

Open

Description

[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 through System.Runtime.InteropServices.CallingConvention have not scaled well thus specifying "CallConv" types from the System.Runtime.InteropServices is assumed. Currently these include:

The new APIs may likely take a proposed MethodSignature class from #75347.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

Cost:MWork that requires one engineer up to 2 weeksapi-needs-workAPI needs work before it is approved, it is NOT ready for implementationarea-System.Reflection.Emit

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions