IronPython的使用C#模块文档 [英] IronPython use C# module documentation

查看:255
本文介绍了IronPython的使用C#模块文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有可以导入到IronPython的一个C#模块(当然,在技术上都可以,但一说的意思是进口的)。然而,IronPython的使用C#模块默认的帮助是不够充分的。

I have a C# module which can be imported into IronPython (well, technically the all can, but one that's meant to be imported). However, the default help used for C# modules by IronPython just isn't sufficient enough.

有没有办法抓住并连接VS导出的XML文档,以一个C#模块与IronPython的帮助系统?或者有没有在C#代码的一些方法来指定的IronPython应该放什么东西来代替默认的文件?

Is there a way to grab and attach the VS exported xml documentation to a C# module with IronPython's help system? Or is there some way in the C# code to specify what IronPython should put in lieu of the default documentation?

推荐答案

如果在XML文件是在相同的位置组装并具有相同的文件名,只是名为.xml而不是.EXE或.DLL,那么应该的IronPython把它捡起来,包括它在类型,方法等相关文档字符串...

If the XML file is in the same location as the assembly and has the same filename just with ".xml" instead of ".exe" or ".dll" then IronPython should pick it up and include it in relevant doc strings for types, methods, etc...

这篇关于IronPython的使用C#模块文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆