From 6cdcc6a90e7c69ce7fc88e8770a2f9d3c3bd1631 Mon Sep 17 00:00:00 2001 From: Laszlo Paillat Date: Sat, 30 May 2020 22:51:59 +0200 Subject: [PATCH] fixed missing types link generation (fix #18) --- .../DefaultDocumentation/DefaultDocumentation.Release.csproj | 5 ++--- source/DefaultDocumentation/DocumentationWriter.cs | 1 + 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/DefaultDocumentation/DefaultDocumentation.Release.csproj b/source/DefaultDocumentation/DefaultDocumentation.Release.csproj index 8c57b5e5..a9c5d18a 100644 --- a/source/DefaultDocumentation/DefaultDocumentation.Release.csproj +++ b/source/DefaultDocumentation/DefaultDocumentation.Release.csproj @@ -7,10 +7,9 @@ - 0.6.6 + 0.6.7 -fixed pointer member handling -fixed ValueTuple member handling +fixed missing types link generation \ No newline at end of file diff --git a/source/DefaultDocumentation/DocumentationWriter.cs b/source/DefaultDocumentation/DocumentationWriter.cs index d03517ae..45007344 100644 --- a/source/DefaultDocumentation/DocumentationWriter.cs +++ b/source/DefaultDocumentation/DocumentationWriter.cs @@ -116,6 +116,7 @@ string HandleTupleType(TupleType tupleType) TypeKind.TypeParameter => _mainItem.TryGetTypeParameterDocItem(type.Name, out TypeParameterDocItem typeParameter) ? GetInnerLink(typeParameter) : type.Name, TypeKind.Dynamic => "[dynamic](https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/types/using-type-dynamic 'dynamic')", TypeKind.Tuple when type is TupleType tupleType => HandleTupleType(tupleType), + TypeKind.Unknown => type.FullName.AsDotNetApiLink(), _ when type is ParameterizedType genericType => HandleParameterizedType(genericType), _ => GetLink(type.GetDefinition().GetIdString()) };