Esempio n. 1
0
        internal static InputModule LoadInputs(Options options)
        {
            if (options.InputParameters.Count == 0)
            {
                throw new ToolArgumentException(SR.Format(SR.ErrNoValidInputFilesSpecified));
            }

            InputModule       inputs = new InputModule();
            InputModuleLoader loader = new InputModuleLoader(inputs, options);

            loader.LoadInputs();

            return(inputs);
        }
Esempio n. 2
0
 private void AddReferencedTypesFromAssembly(Assembly assembly, Dictionary <string, Type> foundCollectionTypes)
 {
     foreach (Type type in InputModule.LoadTypes(assembly))
     {
         if (type.IsPublic || type.IsNestedPublic)
         {
             if (!_parent.IsTypeExcluded(type))
             {
                 _parent._referencedTypes.Add(type);
             }
             else if (IsTypeSpecified(type, foundCollectionTypes, Options.Cmd.CollectionType))
             {
                 _parent._referencedCollectionTypes.Add(type);
             }
         }
     }
 }
Esempio n. 3
0
 internal InputModuleLoader(InputModule newInputModule, Options options)
 {
     _options        = options;
     _newInputModule = newInputModule;
 }