Exemplo n.º 1
0
 public static AnnotationsExporterParameters WithSearchDirectories(
     this AnnotationsExporterParameters @this,
     params string[] directories)
 {
     @this.AddSearchDirectories(directories);
     return(@this);
 }
Exemplo n.º 2
0
 public static AnnotationsExporterParameters WithLibraries(
     this AnnotationsExporterParameters @this,
     [InstantHandle] IEnumerable <string> paths)
 {
     @this.AddLibraries(paths);
     return(@this);
 }
Exemplo n.º 3
0
 public static AnnotationsExporterParameters WithSearchDirectories(
     this AnnotationsExporterParameters @this,
     [InstantHandle] IEnumerable <string> directories)
 {
     @this.AddSearchDirectories(directories);
     return(@this);
 }
Exemplo n.º 4
0
        public static void Run(string assemblyPath, Action <AnnotationsExporterParameters> configure)
        {
            if (configure == null)
            {
                throw new ArgumentNullException(nameof(configure));
            }

            var parameters = new AnnotationsExporterParameters();

            configure(parameters);
            Run(assemblyPath, parameters);
        }
Exemplo n.º 5
0
 public static AnnotationsExporterParameters WithStripAnnotations(this AnnotationsExporterParameters @this) => WithStripAnnotations(@this, true);
Exemplo n.º 6
0
 public static AnnotationsExporterParameters WithStripAnnotations(this AnnotationsExporterParameters @this, bool value)
 {
     @this.StripAnnotations = value;
     return(@this);
 }
Exemplo n.º 7
0
 public static AnnotationsExporterParameters WithoutExportAnnotations(this AnnotationsExporterParameters @this) => WithExportAnnotations(@this, false);
Exemplo n.º 8
0
 public static AnnotationsExporterParameters WithSearchDirectory(this AnnotationsExporterParameters @this, string directory)
 {
     @this.AddSearchDirectory(directory);
     return(@this);
 }
Exemplo n.º 9
0
 public static AnnotationsExporterParameters WithLibraries(this AnnotationsExporterParameters @this, params string[] paths)
 {
     @this.AddLibraries(paths);
     return(@this);
 }
Exemplo n.º 10
0
 public static AnnotationsExporterParameters WithLibrary(this AnnotationsExporterParameters @this, string path)
 {
     @this.AddLibrary(path);
     return(@this);
 }
Exemplo n.º 11
0
 public static AnnotationsExporterParameters WithXmlPath(this AnnotationsExporterParameters @this, string?path)
 {
     @this.XmlPath = path;
     return(@this);
 }