ServicePoint: Use DateTime.UtcNow internally, which avoids looking up the timezone...
[mono.git] / mcs / class / System / System.Net.Configuration / WebRequestModuleHandler.cs
index 9d8eb4c1dadd3e16834d519c79d939a4f0cf3e3d..ed53a837361e1dbefcb282e1b598d049bc5d1779 100644 (file)
@@ -32,15 +32,17 @@ using System.Collections;
 using System.Configuration;
 #if (XML_DEP)
 using System.Xml;
+#else
+using XmlNode = System.Object;
 #endif
 
 namespace System.Net.Configuration
 {
        class WebRequestModuleHandler : IConfigurationSectionHandler
        {
-#if (XML_DEP)
                public virtual object Create (object parent, object configContext, XmlNode section)
                {
+#if (XML_DEP)                  
                        if (section.Attributes != null && section.Attributes.Count != 0)
                                HandlersUtil.ThrowException ("Unrecognized attribute", section);
 
@@ -82,10 +84,10 @@ namespace System.Net.Configuration
 
                                HandlersUtil.ThrowException ("Unexpected element", child);
                        }
+#endif                 
 
                        return null;
                }
-#endif
        }
 }