public CompilerCollection (CompilerCollection parent) { compilers = new Hashtable (CaseInsensitiveHashCodeProvider.DefaultInvariant, CaseInsensitiveComparer.DefaultInvariant); if (parent != null && parent.compilers != null) { foreach (DictionaryEntry entry in parent.compilers) compilers [entry.Key] = entry.Value; } }
public CompilerCollection(CompilerCollection parent) { compilers = new Hashtable(CaseInsensitiveHashCodeProvider.DefaultInvariant, CaseInsensitiveComparer.DefaultInvariant); if (parent != null && parent.compilers != null) { foreach (DictionaryEntry entry in parent.compilers) { compilers [entry.Key] = entry.Value; } } }
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; #if NET_2_0 compilers = new CompilerCollection(); #else compilers = new CompilerCollection(parent.compilers); #endif ArrayList p = parent.assemblies; assembliesInBin = parent.assembliesInBin; ICollection coll = (p == null) ? (ICollection) new object [0] : p; assemblies = new ArrayList(coll); }
/* 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; } }