Exemplo n.º 1
0
        /// <summary>
        /// Creates a new instance.
        /// </summary>
        public ApplicationConfiguration()
        {
#if !SILVERLIGHT
            Paths = new PathsSection();
#endif
            Compiler      = new CompilerSection();
            Globalization = new GlobalizationSection();
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
		/// <summary>
		/// Creates a new instance.
		/// </summary>
		public ApplicationConfiguration()
		{
#if !SILVERLIGHT
			Paths = new PathsSection();
#endif
			Compiler = new CompilerSection();
			Globalization = new GlobalizationSection();
		}