internal GlobalizationConfig(GlobalizationConfig parent) { if (parent != null) { _culture = parent._culture; _uiCulture = parent._uiCulture; _fileEncoding = parent._fileEncoding; _requestEncoding = parent._requestEncoding; _responseEncoding = parent._responseEncoding; } }
public virtual object Create(Object parent, Object configContextObj, XmlNode section) { // if called through client config don't even load HttpRuntime if (!HandlerBase.IsServerConfiguration(configContextObj)) { return(null); } GlobalizationConfig config = new GlobalizationConfig((GlobalizationConfig)parent); config.LoadValuesFromConfigurationXml(section); return(config); }