Browse Source

Fix #1487: Include base types in namespace-set approximation.

pull/1505/head
Siegfried Pammer 6 years ago
parent
commit
bf72999f36
  1. 3
      ICSharpCode.Decompiler/CSharp/RequiredNamespaceCollector.cs

3
ICSharpCode.Decompiler/CSharp/RequiredNamespaceCollector.cs

@ -150,6 +150,9 @@ namespace ICSharpCode.Decompiler.CSharp @@ -150,6 +150,9 @@ namespace ICSharpCode.Decompiler.CSharp
namespaces.Add(type.Namespace);
break;
}
foreach (var baseType in type.GetAllBaseTypes()) {
namespaces.Add(baseType.Namespace);
}
}
public static void CollectNamespaces(EntityHandle entity, MetadataModule module, HashSet<string> namespaces)

Loading…
Cancel
Save