diff --git a/source/DefaultDocumentation/DefaultDocumentation.Release.csproj b/source/DefaultDocumentation/DefaultDocumentation.Release.csproj index e3dca793..3b5fd257 100644 --- a/source/DefaultDocumentation/DefaultDocumentation.Release.csproj +++ b/source/DefaultDocumentation/DefaultDocumentation.Release.csproj @@ -7,9 +7,9 @@ - 0.5.3 + 0.5.4 -fixed TypeDocItem writing members of nested types +fixed nested type not showing parent type in name \ No newline at end of file diff --git a/source/DefaultDocumentation/Model/DocItem.cs b/source/DefaultDocumentation/Model/DocItem.cs index b34a480e..3e8f4793 100644 --- a/source/DefaultDocumentation/Model/DocItem.cs +++ b/source/DefaultDocumentation/Model/DocItem.cs @@ -19,6 +19,15 @@ internal abstract class DocItem | ConversionFlags.UseFullyQualifiedEntityNames }; + private static readonly CSharpAmbience TypeNameAmbience = new CSharpAmbience + { + ConversionFlags = + ConversionFlags.ShowParameterList + | ConversionFlags.ShowTypeParameterList + | ConversionFlags.ShowDeclaringType + | ConversionFlags.UseFullyQualifiedTypeNames + }; + private static readonly CSharpAmbience NameAmbience = new CSharpAmbience { ConversionFlags = @@ -47,7 +56,7 @@ protected DocItem(DocItem parent, string id, string fullName, string name, XElem } protected DocItem(DocItem parent, IEntity entity, XElement documentation) - : this(parent, entity.GetIdString(), FullNameAmbience.ConvertSymbol(entity), NameAmbience.ConvertSymbol(entity), documentation) + : this(parent, entity.GetIdString(), FullNameAmbience.ConvertSymbol(entity), (entity is ITypeDefinition ? TypeNameAmbience : NameAmbience).ConvertSymbol(entity), documentation) { } public abstract void WriteDocumentation(DocumentationWriter writer);