コード例 #1
0
        /// <summary>
        /// Initializes the module read parameters with a working directory.
        /// </summary>
        /// <param name="workingDirectory">The working directory of the modules to read.</param>
        /// <param name="errorListener">The object responsible for recording parser errors.</param>
        public ModuleReaderParameters(string workingDirectory, IErrorListener errorListener)
        {
            if (workingDirectory != null)
            {
                WorkingDirectory = workingDirectory;
                ModuleResolver   = new DirectoryNetModuleResolver(workingDirectory, this);
            }

            PEReaderParameters.ErrorListener = errorListener;
        }
 /// <summary>
 /// Initializes the module read parameters with a working directory.
 /// </summary>
 /// <param name="workingDirectory">The working directory of the modules to read.</param>
 public ModuleReadParameters(string workingDirectory)
 {
     WorkingDirectory = workingDirectory ?? throw new ArgumentNullException(nameof(workingDirectory));
     ModuleResolver   = new DirectoryNetModuleResolver(workingDirectory, this);
 }