Inheritance: System.Configuration.ConfigurationSection
        internal WebRequestModulesSectionInternal(WebRequestModulesSection section)
        {
            if (section.WebRequestModules.Count > 0)
            {
                this.webRequestModules = new ArrayList(section.WebRequestModules.Count);
                foreach(WebRequestModuleElement webRequestModuleElement in section.WebRequestModules)
                {
                    try
                    {
                        this.webRequestModules.Add(new WebRequestPrefixElement(webRequestModuleElement.Prefix, webRequestModuleElement.Type));
                    }
                    catch (Exception exception)
                    {
                        if (NclUtilities.IsFatal(exception)) throw;

                        throw new ConfigurationErrorsException(SR.GetString(SR.net_config_webrequestmodules), exception);
                    }
                    catch {
                        //
                        // throw exception for config debugging
                        //

                        throw new ConfigurationErrorsException(ConfigurationStrings.WebRequestModulesSectionPath, new Exception(SR.GetString(SR.net_nonClsCompliantException)));
                    }
                }
            }
        }
        internal WebRequestModulesSectionInternal(WebRequestModulesSection section)
        {
            if (section.WebRequestModules.Count > 0)
            {
                this.webRequestModules = new ArrayList(section.WebRequestModules.Count);
                foreach (WebRequestModuleElement webRequestModuleElement in section.WebRequestModules)
                {
                    try
                    {
                        this.webRequestModules.Add(new WebRequestPrefixElement(webRequestModuleElement.Prefix, webRequestModuleElement.Type));
                    }
                    catch (Exception exception)
                    {
                        if (NclUtilities.IsFatal(exception))
                        {
                            throw;
                        }

                        throw new ConfigurationErrorsException(SR.GetString(SR.net_config_webrequestmodules), exception);
                    }
                    catch {
                        //
                        // throw exception for config debugging
                        //

                        throw new ConfigurationErrorsException(ConfigurationStrings.WebRequestModulesSectionPath, new Exception(SR.GetString(SR.net_nonClsCompliantException)));
                    }
                }
            }
        }
 internal static WebRequestModulesSectionInternal GetSection()
 {
     lock (ClassSyncObject)
     {
         WebRequestModulesSection section = System.Configuration.PrivilegedConfigurationManager.GetSection(ConfigurationStrings.WebRequestModulesSectionPath) as WebRequestModulesSection;
         if (section == null)
         {
             return(null);
         }
         return(new WebRequestModulesSectionInternal(section));
     }
 }
 internal WebRequestModulesSectionInternal(WebRequestModulesSection section)
 {
     if (section.WebRequestModules.Count > 0)
     {
         this.webRequestModules = new ArrayList(section.WebRequestModules.Count);
         foreach (WebRequestModuleElement element in section.WebRequestModules)
         {
             try
             {
                 this.webRequestModules.Add(new WebRequestPrefixElement(element.Prefix, element.Type));
             }
             catch (Exception exception)
             {
                 if (NclUtilities.IsFatal(exception))
                 {
                     throw;
                 }
                 throw new ConfigurationErrorsException(System.SR.GetString("net_config_webrequestmodules"), exception);
             }
         }
     }
 }
 internal WebRequestModulesSectionInternal(WebRequestModulesSection section)
 {
     if (section.WebRequestModules.Count > 0)
     {
         this.webRequestModules = new ArrayList(section.WebRequestModules.Count);
         foreach (WebRequestModuleElement element in section.WebRequestModules)
         {
             try
             {
                 this.webRequestModules.Add(new WebRequestPrefixElement(element.Prefix, element.Type));
             }
             catch (Exception exception)
             {
                 if (NclUtilities.IsFatal(exception))
                 {
                     throw;
                 }
                 throw new ConfigurationErrorsException(System.SR.GetString("net_config_webrequestmodules"), exception);
             }
         }
     }
 }