开发者

Explicit interface implementation and Reflection.Emit

开发者 https://www.devze.com 2022-12-11 21:36 出处:网络
Does anybody know how to implement an interface\'s property explicitly us开发者_如何学JAVAing Reflection.Emit?See the MSDN documentation for TypeBuilder.DefineMethodOverride, which includes an example

Does anybody know how to implement an interface's property explicitly us开发者_如何学JAVAing Reflection.Emit?


See the MSDN documentation for TypeBuilder.DefineMethodOverride, which includes an example of using Reflection.Emit to generate an explicit interface implementation using that method.


This Reflector Addin should help you. It translates the IL code of a given method into the C# code that would be needed to generate the same IL code using System.Reflection.Emit.

0

精彩评论

暂无评论...
验证码 换一张
取 消