XML comment tag: how to see it?

前端 未结 1 1981
野的像风
野的像风 2021-02-19 01:02

I use Microsoft Visual Studio 2012. When I put code examples into XML comments of C# classes/methods, I wonder: how will user that references my assemblies see that code example

1条回答
  •  情话喂你
    2021-02-19 01:27

    A number of XML comment tags appear in IntelliSense only as child elements of other tags. These tags, known as ChildCompletionList tags, are: c, code, example, list, listheader, para, paramref, see and see also.

    /// 
    /// MethodExample the function that does it all...
    /// 
    /// 
    /// // Here is my code example. Call my method like this:
    /// const int a = 10;
    /// MethodExample(a);
    /// 
    /// 
    /// 
    

    0 讨论(0)
提交回复
热议问题