Skip to content

Function pointers C# 9.0performanceinteropunsafe

Extend the delegate keyword to `delegate*` to allow function pointers.

C# 9.0 introduces function pointers to the language. This allows developers to use the delegate* keyword to declare a function pointer type. This is useful for interop scenarios where you need to call into native code or for performance-critical code where you want to avoid the overhead of delegates.

More information