Removal of NET_1_1 defines and some NET_2_0; Both defines are true these days in...
[mono.git] / mcs / class / System.XML / System.Xml.Schema / XmlSchemaSimpleTypeUnion.cs
index c264e8b7b62257268b1dfd797197d8ce0cb25df5..f4d1c20759f7b5bc295b2e58cc0a9df5404121e0 100644 (file)
@@ -71,6 +71,13 @@ namespace System.Xml.Schema
                        get { return validatedTypes; }
                }
 
+               internal override void SetParent (XmlSchemaObject parent)
+               {
+                       base.SetParent (parent);
+                       foreach (XmlSchemaObject obj in BaseTypes)
+                               obj.SetParent (this);
+               }
+
                /// <remarks>
                /// 1. Circular union type definition is disallowed. (WTH is this?)
                /// 2. id must be a valid ID
@@ -81,11 +88,6 @@ namespace System.Xml.Schema
                        if (CompilationId == schema.CompilationId)
                                return 0;
 
-#if NET_2_0
-                       foreach (XmlSchemaObject obj in BaseTypes)
-                               obj.Parent = this;
-#endif
-
                        errorCount = 0;
 
                        int count = BaseTypes.Count;