C# 包装器中非托管代码的 Doxygen 注释参数

发布于 2025-01-07 10:56:26 字数 365 浏览 3 评论 0原文

我正在使用 Doxygen 来记录我们的 C# 包装器方法。一些方法具有非托管参数,这些参数在声明中可见并写入文档,例如

void Register(
    [In, MarshalAs(UnmanagedType.U1)] byte nPriority,
    [In, MarshalAs(UnmanagedType.Interface)] ITag Tag)

我希望 Doxygen 在文档中隐藏声明的编组部分,即

void Register(
    byte nPriority,
    ITag Tag)

这对于 Doxygen 是否可能,或者我必须对html?

I am using Doxygen to document our C# wrapper methods. Some of the methods have unmanaged parameters which are visible in the declaration and are written to the documentation e.g.

void Register(
    [In, MarshalAs(UnmanagedType.U1)] byte nPriority,
    [In, MarshalAs(UnmanagedType.Interface)] ITag Tag)

I would like Doxygen to hide the marshalling part of the declaration in the documentation i.e.

void Register(
    byte nPriority,
    ITag Tag)

Is this possible with Doxygen or will I have to post-process the html?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

许仙没带伞 2025-01-14 10:56:26

您可以创建一个类似于此处所示的输入过滤器:

Doxygen 并将属性值添加到输出文档

You could create an input filter similar to what is shown here:

Doxygen and add a value of an attribute to the output documentation

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文