/// <summary> /// Initializes a new instance of the EnvironmentModule class with the given parameters. /// </summary> /// <param name="baseModule">The info object of the module.</param> /// <param name="isLoadedDirectly">True if the module was loaded directly by the user. False if the module was loaded as dependency of another module.</param> /// <param name="sourceModule">The module that has triggered the loading. Should be set if isLoadedDirectly is false.</param> public EnvironmentModule( EnvironmentModuleInfo baseModule, bool isLoadedDirectly = true, EnvironmentModuleInfo sourceModule = null) : base(baseModule) { IsLoadedDirectly = isLoadedDirectly; SourceModule = sourceModule; pathInfos = new Dictionary <string, PathInfo>(); Aliases = new Dictionary <string, AliasInfo>(); Functions = new Dictionary <string, FunctionInfo>(); }
/// <summary> /// Initializes a new instance of the EnvironmentModuleInfo class was copy of the given module. /// </summary> /// <param name="other">The source of the copy constructor.</param> public EnvironmentModuleInfo(EnvironmentModuleInfo other) : this( other.ModuleBase, other.ModuleRoot, other.TmpDirectory, other.FullName, other.Name, other.Version, other.Architecture, other.AdditionalOptions, other.ModuleType) { Dependencies = other.Dependencies; SearchPaths = other.SearchPaths; RequiredItems = other.RequiredItems; DirectUnload = other.DirectUnload; StyleVersion = other.StyleVersion; Category = other.Category; Parameters = other.Parameters; }