/// <summary> /// Creates a new instance. /// </summary> public ApplicationConfiguration() { #if !SILVERLIGHT Paths = new PathsSection(); #endif Compiler = new CompilerSection(); Globalization = new GlobalizationSection(); }
public static PathsSection Paths(this CustomConfiguration config) { lock (_lockObjectPath) { if (_pathSection == null) { _pathSection = ConfigurationManager.GetSection(PathsSection.SectionName) as PathsSection; if (_pathSection == null) { throw new ConfigurationErrorsException(String.Format(ConfigurationMessages.SectionNotFound, PathsSection.SectionName)); } } } return(_pathSection); }