Delegate.CreateDelegate vs DynamicMethod vs Expression

前端 未结 2 1312
遇见更好的自我
遇见更好的自我 2020-12-13 04:25

Questions about Making reflection fly and exploring delegates...

If I need to create delegates Func to methods on dynamically loaded t

2条回答
  •  猫巷女王i
    2020-12-13 05:23

    Via Ayende's blog I got this interesting link which shows off the kind of things you can do with Dynamic Methods. As an example it is quite understandable:
    Accelerating Enum-Based Dictionaries with Generic EnumComparer

    Update

    One should note that in the world of WinRT, Reflection.Emit is unavailable - some information can be found here

提交回复
热议问题