/* Only the config. handler should create instances of this. Use GetInstance (context) */ public CompilationConfiguration (object p) { CompilationConfiguration parent = p as CompilationConfiguration; if (parent != null) Init (parent); if (compilers == null) compilers = new CompilerCollection (); if (assemblies == null) assemblies = new ArrayList (); if (temp_directory == null || temp_directory == "") temp_directory = AppDomain.CurrentDomain.SetupInformation.DynamicBase; }
void Init (CompilationConfiguration parent) { debug = parent.debug; batch = parent.batch; batch_timeout = parent.batch_timeout; default_language = parent.default_language; _explicit = parent._explicit; max_batch_size = parent.max_batch_size; max_batch_file_size = parent.max_batch_file_size; num_recompiles_before_app_restart = parent.num_recompiles_before_app_restart; strict = parent.strict; temp_directory = parent.temp_directory; compilers = new CompilerCollection (parent.compilers); ArrayList p = parent.assemblies; assembliesInBin = parent.assembliesInBin; ICollection coll = (p == null) ? (ICollection) new object [0] : p; assemblies = new ArrayList (coll); }