问候
在为属性/字段/方法等设置摘要时,是否可以在其中换行?
/// <summary>
/// This is line 1
/// This is line 2
/// </summary>
public bool TestLine { get; set; }
当我设置它时,它显示为鼠标悬停:
bool TestLine This is line 1 This is line 2
但我希望它显示为:
bool TestLine This is line 1 This is line 2
我试过使用 \n
但它不起作用。有什么办法可以做到这一点吗?
最佳答案
你想用这样的东西
/// <summary>
/// Your Main comment
/// <para>This is line 1</para>
/// <para>This is line 2</para>
/// </summary>
public bool TestLine { get; set; }
关于c# - 对象摘要中的换行符,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6060416/