Replies: 2 comments 7 replies
-
..... why? What problem are you trying to solve where you need to find this information at runtime? |
Beta Was this translation helpful? Give feedback.
7 replies
-
Reflection support isn't complete for function pointer. Inspection for function pointer type was added in .NET 8, but creation of function pointer isn't. There are also other features like static virtual methods that are not supported by reflection. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I need some way of constructing a function pointer type that points to a specific function signature. So something like this:
The above sadly does not work, as the type arguments for
delegate*<>
need to be fully specified. I looked through the documentation and could not find anything regarding this.A more specific example, how would I use
System.Reflection.Emit
to create a field such as this:Beta Was this translation helpful? Give feedback.
All reactions