preserve the old behavior for 1.1 profiles
authorJb Evain <jbevain@gmail.com>
Sun, 2 Sep 2007 11:58:08 +0000 (11:58 -0000)
committerJb Evain <jbevain@gmail.com>
Sun, 2 Sep 2007 11:58:08 +0000 (11:58 -0000)
svn path=/trunk/mcs/; revision=85190

mcs/class/corlib/System.Reflection.Emit/TypeBuilder.cs

index 35b0c3f069d62cd6ab788bb1a38b8a903774d5b2..d9f5c6e44e2aa8555b2af020be59ddf1724d7f21 100644 (file)
@@ -969,6 +969,9 @@ namespace System.Reflection.Emit
                        // http://bugzilla.ximian.com/show_bug.cgi?id=82625
                        if (!ContainsGenericParameters && (created != null))
                                return created.GetFields (bindingAttr);
+#else
+                       if (created != null)
+                               return created.GetFields (bindingAttr);
 #endif
 
                        if (fields == null)