2005-01-13 Atsushi Enomoto <atsushi@ximian.com>
[mono.git] / mcs / class / System.XML / System.Xml.Schema / XmlSchemaComplexContentExtension.cs
index 3f1196739f8b5e0bb262dbfa1c4942002f45c3b8..75b2a86e01776b46a498e07df84406fda11863f3 100755 (executable)
@@ -93,6 +93,15 @@ namespace System.Xml.Schema
                        if (this.IsComplied (schema.CompilationId))\r
                                return 0;\r
 \r
+#if NET_2_0\r
+                       if (Particle != null)\r
+                               Particle.Parent = this;\r
+                       if (AnyAttribute != null)\r
+                               AnyAttribute.Parent = this;\r
+                       foreach (XmlSchemaObject obj in Attributes)\r
+                               obj.Parent = this;\r
+#endif\r
+\r
                        if (this.isRedefinedComponent) {\r
                                if (Annotation != null)\r
                                        Annotation.isRedefinedComponent = true;\r