public Files(string asmlocation, AssemblyDocumenter.Logger Logger, System.Boolean Log) { logger = Logger; log = Log; if (System.IO.File.Exists(asmlocation)) { //just document this one single assembly asmFiles.Add(System.Reflection.Assembly.LoadFrom(asmlocation)); if (log) logger.Log("Loaded:" + asmlocation + "\n"); } else if (System.IO.Directory.Exists(asmlocation)) { //document entire folder LoadFiles(asmlocation); if (log) logger.Log("Done Loading " + Convert.ToString(asmFiles.Count) + " Files.\n"); } else { //do nothing } }
public Documenter(string AssemblyLocation, string SaveLocation, AssemblyDocumenter.Logger Logger) { logger = Logger; log = true; BuildDocs(AssemblyLocation, SaveLocation); }