コード例 #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);
        }
コード例 #2
0
ファイル: Options.cs プロジェクト: violetaGitHub/wcf
 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);
             }
         }
     }
 }
コード例 #3
0
 internal InputModuleLoader(InputModule newInputModule, Options options)
 {
     _options        = options;
     _newInputModule = newInputModule;
 }