3

我正在尝试为我的 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>
4

1 回答 1

1

尝试删除列表中的 para 标记。

于 2010-04-13T06:24:49.143 回答