C#comment语法中是否有一个XML标记,允许注释生成器忽略一段文本?
是否有人知道是否有一个XML注释标记,允许人们从注释生成器(特别是sandcastle)隐藏文本 例如,考虑到以下情况:C#comment语法中是否有一个XML标记,允许注释生成器忽略一段文本?,c#,comments,sandcastle,C#,Comments,Sandcastle,是否有人知道是否有一个XML注释标记,允许人们从注释生成器(特别是sandcastle)隐藏文本 例如,考虑到以下情况: /// <summary> /// Returns the sum of two numbers. /// </summary> /// <hide>I do not want this text in any documentation generated by sandcastle.</hide> /// <param
/// <summary>
/// Returns the sum of two numbers.
/// </summary>
/// <hide>I do not want this text in any documentation generated by sandcastle.</hide>
/// <param name="a">The first number.</param>
/// <param name="b">The second number.</param>
/// <returns>A value representing the sum of two numbers.</returns>
public int Sum(int a, int b)
{
return a + b;
}
//
///返回两个数字的和。
///
///我不希望此文本出现在sandcastle生成的任何文档中。
///第一个数字。
///第二个数字。
///表示两个数之和的值。
公共整数和(整数a,整数b)
{
返回a+b;
}
我想有文本之间的。。。标记不会显示在任何sandcastle生成的输出中
有什么想法吗?那就不要把///放在前面了?谢谢你的反馈;这就是我现在要做的;但是,当注释模板由ghostdoc之类的工具自动生成时(我必须打破注释方案/流程),这是非常乏味的。我希望有一个更“优雅”的解决方案,适合传统的xml注释方案。