C# XML Comentários - Construa uma lista
-
26-09-2019 - |
Pergunta
Estou tentando criar uma lista para meus comentários XML no meu método C#.
Estou usando o documento a seguir, no entanto, a implementação da lista não funciona para mim. Estou usando o Visual Studio 2008 e o .NET 3.5.
http://msdn.microsoft.com/en-us/magazine/cc302121.aspx
Como faço para construir uma lista usando comentários XML em C#?
Aqui está o meu código XML atual. A tag para funciona bem, no entanto, nenhuma lista está sendo gerada.
/// <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>
Solução
Tente remover a tag Para dentro da sua lista.
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow