object CreateNewHandler (string sectionName, SectionData section)
{
Type t = Type.GetType (section.TypeName);
if (t == null)
throw new ConfigurationException ("Cannot get Type for " + section.TypeName);
#if false
Type iconfig = typeof (IConfigurationSectionHandler);
if (!iconfig.IsAssignableFrom (t))
throw new ConfigurationException (sectionName + " does not implement " + iconfig);
#endif
object o = Activator.CreateInstance (t, true);
if (o == null)
throw new ConfigurationException ("Cannot get instance for " + t);
return o;
}
#if (XML_DEP)