C# XML注释 - 构建列表

4
我正在尝试为我的C#方法的XML注释构建列表。
我使用了以下文档,但其中的列表实现对我不起作用。我正在使用Visual Studio 2008和.NET 3.5。

http://msdn.microsoft.com/en-us/magazine/cc302121.aspx

如何使用C#中的XML注释构建列表?

这是我当前的XML代码。para标签可以正常工作,但没有生成列表。

   /// <summary>
    /// Populates an entity from the database.
    /// <para />
    /// <list type="table">
    /// <listheader>
    /// <term>This method contains assumptions in the implementation of the entity:</term>
    /// </listheader>
    /// <item><term>Given the entity name [name]Entity (eg. [User]Entity is User), there is an
    /// appropriate stored procedure created: dbo.sp[name]View (eg. dbo.spUserView).
    /// <para />
    /// The structure of the stored procedure must adhere to design principles to correctly
    /// load the data into the objects.
    /// <para />
    /// See documentation on implementation of stored procedures if you are unsure of any details.
    /// </term>
    /// </item>
    /// </list>
    /// </summary>
    /// <param name="entity"></param>

你是否在相应项目的选项中启用了“生成 XML 注释”? - Alex
只有列表不起作用?你能把你的代码发出来吗? - Hun1Ahpu
@Hun1Ahpu - 请查看更新后的代码。@Alex,是的,所有框都已勾选。 - Russell
1个回答

1
尝试在列表中删除段落标签。

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接