阅读背景:

使用扩展方法将实现注入到类中,从而实现接口?

来源:互联网 

Is it possible to 'inject' code into a class (by referencing a namespace containing extension methods) and thereby simulating base class implementation for some interface? Or is this considered bad practice (even if it is not possible)?Is it possible to 'inject' code into a class (b




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: