Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 98264a3

Browse files
committed
Merge pull request #4 from davidanthoff/fixemptynamespace
Ignore generic types in the root namespace
2 parents a6895be + df5dee4 commit 98264a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pythonnet/src/runtime/assemblymanager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ static void ScanAssembly(Assembly assembly) {
283283
namespaces[ns].Add(assembly, String.Empty);
284284
}
285285

286-
if (t.IsGenericTypeDefinition) {
286+
if (ns != null && t.IsGenericTypeDefinition) {
287287
GenericUtil.Register(t);
288288
}
289289
}

0 commit comments

Comments
 (0)