【发布时间】:2010-04-13 06:16:56
【问题描述】:
我正在尝试在我的 C# 方法上为我的 XML cmets 构建一个列表。
我正在使用以下文档,但是其中的列表实现对我不起作用。我正在使用 Visual Studio 2008 和 .net 3.5。
http://msdn.microsoft.com/en-us/magazine/cc302121.aspx
如何在 C# 中使用 XML cmets 构建列表?
这是我当前的 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 注释”?
-
只有列表不起作用?你能发布你的代码吗?
-
@Hun1Ahpu - 查看更新的代码。 @Alex,是的,所有框都选中了。
标签: c# xml-comments