How does delegate.Invoke work?

后端 未结 1 1066
清歌不尽
清歌不尽 2021-01-02 05:06

If I create a delegate in my code like :

delegate void dostuff (string o);

This generates a class that derives from System.MulticastD

1条回答
  •  天命终不由人
    2021-01-02 06:00

    The voodoo can be found at the end of the signature: runtime managed. Notice that all of your managed classes and methods that you define will be decorated as cli managed.

    runtime managed means that the runtime provides pre-optimized implementations of the methods.

    0 讨论(0)
提交回复
热议问题