示例#1
0
        /// <summary>
        /// Creates a new compiler configuration as a shallow copy of
        /// the relevant sections of the global configuration record.
        /// </summary>
        /// <param name="app">Application configuration record.</param>
        /// <exception cref="ArgumentNullException"><paramref name="app"/> is a <B>null</B> reference.</exception>
        public CompilerConfiguration(ApplicationConfiguration /*!*/ app)
        {
            if (app == null)
            {
                throw new ArgumentNullException("app");
            }

            this.Compiler      = app.Compiler;
            this.Globalization = app.Globalization;
#if !SILVERLIGHT
            this.Paths = app.Paths;
#endif
        }
示例#2
0
		/// <summary>
		/// Creates a new compiler configuration as a shallow copy of 
		/// the relevant sections of the global configuration record.
		/// </summary>
		/// <param name="app">Application configuration record.</param>
		/// <exception cref="ArgumentNullException"><paramref name="app"/> is a <B>null</B> reference.</exception>
		public CompilerConfiguration(ApplicationConfiguration/*!*/ app)
		{
			if (app == null)
				throw new ArgumentNullException("app");

			this.Compiler = app.Compiler;
			this.Globalization = app.Globalization;
#if !SILVERLIGHT
			this.Paths = app.Paths;
#endif
		}