From 7599d0c4106b42a39cf5a5fb002c7cc5dbdb5a1b Mon Sep 17 00:00:00 2001 From: Siegfried Pammer Date: Sat, 2 Jun 2018 19:39:44 +0200 Subject: [PATCH] Try to resolve exported types in XmlDocKeyProvider.FindType --- ICSharpCode.Decompiler/Documentation/XmlDocKeyProvider.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ICSharpCode.Decompiler/Documentation/XmlDocKeyProvider.cs b/ICSharpCode.Decompiler/Documentation/XmlDocKeyProvider.cs index c23761067..120be73f8 100644 --- a/ICSharpCode.Decompiler/Documentation/XmlDocKeyProvider.cs +++ b/ICSharpCode.Decompiler/Documentation/XmlDocKeyProvider.cs @@ -241,6 +241,14 @@ namespace ICSharpCode.Decompiler.Documentation type = type.NestedTypes.FirstOrDefault(t => t.Name == name); } } + if (type == null && module.HasExportedTypes) { + foreach (var exportedType in module.ExportedTypes) { + if (exportedType.Name == name && exportedType.Namespace == ns) { + type = exportedType.Resolve(); + break; + } + } + } return type; } #endregion