How to add a line break in C# .NET documentation

前端 未结 5 495
眼角桃花
眼角桃花 2020-11-28 21:36

This should be waaaay easier...

I want to add a \"coded\" line break to the XML documentation in my code

/// 
/// Get a human-readable         


        
5条回答
  •  春和景丽
    2020-11-28 22:25

    As of Visual Studio 2019, use
    for newlines in comments.

    Example:

    /// 
    /// This is a comment.
    /// This is another comment
    /// This is a long comment so i want it to continue
    on another line. ///

    Notice that there is no extra line added when we use
    instead of .

提交回复
热议问题