-
I'm currently working with source generators to create all sorts of math operation. For that reason I'm using partial static methods and create the body in the source generator. I was just curious if I can use the extern keyword for creating something similar like a partial method and assign the funtion pointer there. Or I could use function pointers. Even if this is not the suggested way, a question came up of someone else other then the runtime can do something with the extern method other than pinvoke? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hopefully extern (C# Reference) (and the link to the language specification there) can answer your question.
Where "externally" is to be understood as outside of the C# code. So a source generator doesn't fall into this category. |
Beta Was this translation helpful? Give feedback.
Hopefully extern (C# Reference) (and the link to the language specification there) can answer your question.
Where "externally" is to be understood as outside of the C# code. So a source generator doesn't fall into this category.