Namespace ns = targetNamespace;
string prev_namespace = null;
foreach (var t in types) {
- if (t == null || t.IsNested)
+ if (t == null)
+ continue;
+
+ // Be careful not to trigger full parent type loading
+ if (t.MemberType == MemberTypes.NestedType)
continue;
if (t.Name[0] == '<')
.method public hidebysig specialname rtspecialname
instance void .ctor() cil managed
{
- .maxstack 8
IL_0000: ldarg.0
IL_0001: call instance void [mscorlib]System.Object::.ctor()
IL_0006: ret
}
-}
\ No newline at end of file
+}
+
+.class public auto ansi beforefieldinit Another extends ['missing-lib']XXBase
+{
+ .class auto ansi nested public beforefieldinit Nested extends [mscorlib]System.Object
+ {
+ .method public hidebysig specialname rtspecialname instance void .ctor() cil managed
+ {
+ IL_0000: ldarg.0
+ IL_0001: call instance void [mscorlib]System.Object::.ctor()
+ IL_0006: ret
+ }
+ }
+
+ .method public hidebysig specialname rtspecialname instance void .ctor() cil managed
+ {
+ IL_0000: ldarg.0
+ IL_0001: call instance void [mscorlib]System.Object::.ctor()
+ IL_0006: ret
+ }
+}
+