gpt4 book ai didi

c# - 如何忽略公共(public)类或方法的帮助文件生成器生成的文档?

转载 作者:太空狗 更新时间:2023-10-29 19:53:09 25 4
gpt4 key购买 nike

如何在 SandCaSTLe 帮助文件生成器生成的文档中省略某些公共(public)类或方法?

示例:我有以下带有两个公共(public)方法的公共(public)类:

/// <summary>
/// A simple test class.
/// </summary>
public class MyClass
{
/// <summary>
/// Method1s this instance.
/// </summary>
public void Method1()
{
// Do some operations here.
}

/// <summary>
/// Method2s this instance.
/// </summary>
public void Method2()
{
// Do some operations here.
}
}

当我使用 SandCaSTLe Help File Builder 从此代码生成帮助文件时,我想忽略 Method2

最佳答案

(这是一个更新,因为自从 Thomas Levesque 发表他的评论后,用户界面似乎发生了变化。它也与我在网上其他地方找到的一些信息不同。)

在最新版本的 SandCaSTLe 中,截至 2014 年 5 月 31 日,您必须经过 3 个步骤才能到达那里。

  1. 在独立用户界面中,选择项目属性标签。
  2. 左侧应该有一个类别列表。选择可见性
  3. 点击编辑API过滤器按钮;这是在右侧的底部。

从那里,您将找到 API 条目列表。您可以单独取消选择类、命名空间和类内的项目(属性、字段、方法)。

关于c# - 如何忽略公共(public)类或方法的帮助文件生成器生成的文档?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10717383/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com