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); }
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); } } } }
internal InputModuleLoader(InputModule newInputModule, Options options) { _options = options; _newInputModule = newInputModule; }