object GetConfigInternal (string sectionName)
{
object handler = GetHandler (sectionName);
IConfigurationSectionHandler iconf = handler as IConfigurationSectionHandler;
if (iconf == null)
return handler;
object parentConfig = null;
if (parent != null)
parentConfig = parent.GetConfig (sectionName);
XmlDocument doc = GetDocumentForSection (sectionName);
if (doc == null || doc.DocumentElement == null)
return parentConfig;
return iconf.Create (parentConfig, fileName, doc.DocumentElement);
}
#else