using System.Configuration;
#if (XML_DEP)
using System.Xml;
+#else
+using XmlNode = System.Object;
#endif
+#pragma warning disable 618
+
namespace System.Net.Configuration
{
class ConnectionManagementData
public ConnectionManagementData (object parent)
{
- data = new Hashtable (CaseInsensitiveHashCodeProvider.Default,
- CaseInsensitiveComparer.Default);
+ data = new Hashtable (CaseInsensitiveHashCodeProvider.DefaultInvariant,
+ CaseInsensitiveComparer.DefaultInvariant);
if (parent != null && parent is ConnectionManagementData) {
ConnectionManagementData p = (ConnectionManagementData) parent;
foreach (string k in p.data.Keys)
class ConnectionManagementHandler : IConfigurationSectionHandler
{
-#if (XML_DEP)
public virtual object Create (object parent, object configContext, XmlNode section)
{
ConnectionManagementData cmd = new ConnectionManagementData (parent);
-
+#if (XML_DEP)
if (section.Attributes != null && section.Attributes.Count != 0)
HandlersUtil.ThrowException ("Unrecognized attribute", section);
HandlersUtil.ThrowException ("Unexpected element", child);
}
+#endif
return cmd;
}
-#endif
}
internal class HandlersUtil