"Using UnmanagedCallersOnly Pointer"

unsafe {
	NativeMethods.InvokeFuncPtr(&NativeMethods.ReturnInt); // Prints 123 to std::wcout (i.e. console)
}


Code snippet taken from "Two Decades of C#: A Reference - C# 9".