How do extension methods work under-the-hood?

后端 未结 6 1108
半阙折子戏
半阙折子戏 2021-02-13 12:56

A contractor where I work is using extension methods to implement CRUD on well-known internal classes that we own. I say it is better

6条回答
  •  再見小時候
    2021-02-13 13:19

    Description

    Extension Methods is a language feature. The compiler makes regular IL (aka MSIL or CIL) code from that. No reflection required.

    More Information

    • MSDN - Extension Methods
    • Wikipedia - Common Intermediate Language

提交回复
热议问题