IronPython中的Redeclare .net类(Redeclare .net classes in IronPython)

编程入门 行业动态 更新时间:2024-10-28 21:26:53
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.

更多推荐

本文发布于:2023-07-22 07:03:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1217945.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Redeclare   IronPython   classes   net

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!