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