The UnmanagedCallersOnlyAttribute is part of the C# FunctionPointers proposal, specifically it's applied to methods that will be called from native code only #32462 (but note that the calling convention part will be changing #37612)
Implementation note: the presence of the attribute means that ldftn should return a pointer to a native-to-managed wrapper.
The
UnmanagedCallersOnlyAttributeis part of the C# FunctionPointers proposal, specifically it's applied to methods that will be called from native code only #32462 (but note that the calling convention part will be changing #37612)Implementation note: the presence of the attribute means that
ldftnshould return a pointer to a native-to-managed wrapper.