Can anyone show me an example of MethodImplOptions.ForwardRef

前端 未结 2 764
清歌不尽
清歌不尽 2021-02-05 22:31

It looks cool on MSDN:

Specifies that the method is declared, but its implementation is provided elsewhere.

So I tried it in a con

2条回答
  •  走了就别回头了
    2021-02-05 22:54

    My understanding is that ForwardRef acts in the same way as extern, and is intended for guiding the runtime when the language you are using lacks direct support (via extern in C#). As such, the usage should be very similar to the extern modifier, most notably using [DllImport(...)].

提交回复
热议问题