gpt4 book ai didi

c# - 对象摘要中的换行符

转载 作者:IT王子 更新时间:2023-10-29 03:37:40 27 4
gpt4 key购买 nike

问候

在为属性/字段/方法等设置摘要时,是否可以在其中换行?

/// <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/

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