Merge pull request #896 from echampet/webresource
[mono.git] / mcs / class / System / System.Configuration / NameValueFileSectionHandler.cs
index fd46b8ca6a3128d15a237a0b391c0eba8e053cb5..efa336e927c8ee4f3ba5a20f26045ba53fe8ba00 100644 (file)
@@ -33,15 +33,17 @@ using System.Collections.Specialized;
 using System.IO;
 #if (XML_DEP)
 using System.Xml;
+#else
+using XmlNode = System.Object;
 #endif
 
 namespace System.Configuration
 {
        public class NameValueFileSectionHandler : IConfigurationSectionHandler
        {
-#if (XML_DEP)
                public object Create (object parent, object configContext, XmlNode section)
                {
+#if (XML_DEP)
                        XmlNode file = null;
                        if (section.Attributes != null)
                                file = section.Attributes.RemoveNamedItem ("file");
@@ -69,8 +71,10 @@ namespace System.Configuration
                        }
 
                        return pairs;
+#else
+                       return null;
+#endif                 
                }
-#endif
        }
 }