X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2FSystem%2FSystem.Net.Configuration%2FNetConfigurationHandler.cs;h=59f648186e9bbb246af110b7dbf56b87f2de672b;hb=1b6292607cf62656e9e5d4f0f16cdbb57c08bc0b;hp=2e3d3f9377116c329af28acd1bf1184554e02665;hpb=fc4b07f20f9e79fe99d4b520bb5ff8b5e80b10f6;p=mono.git diff --git a/mcs/class/System/System.Net.Configuration/NetConfigurationHandler.cs b/mcs/class/System/System.Net.Configuration/NetConfigurationHandler.cs index 2e3d3f93771..59f648186e9 100644 --- a/mcs/class/System/System.Net.Configuration/NetConfigurationHandler.cs +++ b/mcs/class/System/System.Net.Configuration/NetConfigurationHandler.cs @@ -34,20 +34,21 @@ using System.Collections; using System.Configuration; #if (XML_DEP) using System.Xml; +#else +using XmlNode = System.Object; #endif namespace System.Net.Configuration { class NetConfigurationHandler : IConfigurationSectionHandler { -#if (XML_DEP) public virtual object Create (object parent, object configContext, XmlNode section) { + NetConfig config = new NetConfig (); +#if (XML_DEP) if (section.Attributes != null && section.Attributes.Count != 0) HandlersUtil.ThrowException ("Unrecognized attribute", section); - NetConfig config = new NetConfig (); - XmlNodeList reqHandlers = section.ChildNodes; foreach (XmlNode child in reqHandlers) { XmlNodeType ntype = child.NodeType; @@ -98,9 +99,9 @@ namespace System.Net.Configuration HandlersUtil.ThrowException ("Unexpected element", child); } +#endif return config; } -#endif } }