Beispiel #1
0
 public static AnnotationsExporterParameters WithSearchDirectories(
     this AnnotationsExporterParameters @this,
     params string[] directories)
 {
     @this.AddSearchDirectories(directories);
     return(@this);
 }
Beispiel #2
0
 public static AnnotationsExporterParameters WithLibraries(
     this AnnotationsExporterParameters @this,
     [InstantHandle] IEnumerable <string> paths)
 {
     @this.AddLibraries(paths);
     return(@this);
 }
Beispiel #3
0
 public static AnnotationsExporterParameters WithSearchDirectories(
     this AnnotationsExporterParameters @this,
     [InstantHandle] IEnumerable <string> directories)
 {
     @this.AddSearchDirectories(directories);
     return(@this);
 }
Beispiel #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);
        }
Beispiel #5
0
 public static AnnotationsExporterParameters WithStripAnnotations(this AnnotationsExporterParameters @this) => WithStripAnnotations(@this, true);
Beispiel #6
0
 public static AnnotationsExporterParameters WithStripAnnotations(this AnnotationsExporterParameters @this, bool value)
 {
     @this.StripAnnotations = value;
     return(@this);
 }
Beispiel #7
0
 public static AnnotationsExporterParameters WithoutExportAnnotations(this AnnotationsExporterParameters @this) => WithExportAnnotations(@this, false);
Beispiel #8
0
 public static AnnotationsExporterParameters WithSearchDirectory(this AnnotationsExporterParameters @this, string directory)
 {
     @this.AddSearchDirectory(directory);
     return(@this);
 }
Beispiel #9
0
 public static AnnotationsExporterParameters WithLibraries(this AnnotationsExporterParameters @this, params string[] paths)
 {
     @this.AddLibraries(paths);
     return(@this);
 }
Beispiel #10
0
 public static AnnotationsExporterParameters WithLibrary(this AnnotationsExporterParameters @this, string path)
 {
     @this.AddLibrary(path);
     return(@this);
 }
Beispiel #11
0
 public static AnnotationsExporterParameters WithXmlPath(this AnnotationsExporterParameters @this, string?path)
 {
     @this.XmlPath = path;
     return(@this);
 }