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