Copy from 72246 to trunk
[mono.git] / mcs / class / System.Configuration / System.Configuration / DefaultSection.cs
index 8712bf6518152f1ff85b371e0078f00b2afdd4c7..ab3b0800cd40ef84db1936e27337c4e80eec41a4 100644 (file)
@@ -41,10 +41,18 @@ namespace System.Configuration {
                        properties = new ConfigurationPropertyCollection ();
                }
 
-               [MonoTODO]
                protected internal override void DeserializeSection (XmlReader xmlReader)
                {
-                       base.DeserializeSection (xmlReader);
+                       // not sure if it is the right thing to do,
+                       // but DefaultSection does not raise errors on
+                       // unrecognized contents.
+
+                       // FIXME: it is nothing more than hack: RawXml should
+                       // not be set more than once.
+                       if (RawXml == null)
+                               RawXml = xmlReader.ReadOuterXml ();
+                       else
+                               xmlReader.Skip ();
                }
 
                [MonoTODO]