diff --git a/NETGenerator/NETGenerator.cs b/NETGenerator/NETGenerator.cs index 21e74d1b9..f8b0cc3d7 100644 --- a/NETGenerator/NETGenerator.cs +++ b/NETGenerator/NETGenerator.cs @@ -1950,7 +1950,7 @@ namespace PascalABCCompiler.NETGenerator mi = TypeBuilder.GetMethod(t, mi); } - else if (t.Name != "TypeBuilderInstantiation") + else if (t.GetType().Name != "TypeBuilderInstantiation") { try {