Browse Source

Try to resolve exported types in XmlDocKeyProvider.FindType

pull/1167/head
Siegfried Pammer 7 years ago
parent
commit
7599d0c410
  1. 8
      ICSharpCode.Decompiler/Documentation/XmlDocKeyProvider.cs

8
ICSharpCode.Decompiler/Documentation/XmlDocKeyProvider.cs

@ -241,6 +241,14 @@ namespace ICSharpCode.Decompiler.Documentation @@ -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

Loading…
Cancel
Save