IronPython中的Redeclare .net类(Redeclare .net classes in IronPython)
任何人都可以告诉我是否有可能在IronPython中重新声明一个C#类? 如果我有一个C#类,我可以从IronPython中修补它吗?
Can anyone tell me if its possible to redeclare a C# class in IronPython? If I have a C# class, would I be able to monkey-patch it from IronPython?
最满意答案
你不能从IronPython中修补补丁。 IronPython处理所有.NET类,就像CPython处理内置类型一样:它们不能被猴子修补。 另一方面,IronRuby支持这一点。
You cannot monkey patch from IronPython. IronPython treats all .NET classes just like CPython treats built-in types: they cannot be monkey patched. IronRuby on the other hand does support this.
更多推荐
发布评论