private void CopyProject(Project project) { AssemblyFileNames = new ArrayList(); XmlDocFileNames = new ArrayList(); ReferencePaths = new ReferencePathCollection(); foreach(AssemblySlashDoc assemblySlashDoc in project.AssemblySlashDocs) { if (assemblySlashDoc.Assembly.Path.Length>0) { string assemblyFileName = assemblySlashDoc.Assembly.Path; AssemblyFileNames.Add(assemblyFileName); string assyDir = System.IO.Path.GetDirectoryName(assemblyFileName); ReferencePaths.Add(new ReferencePath(assyDir)); } if (assemblySlashDoc.SlashDoc.Path.Length>0) { XmlDocFileNames.Add(assemblySlashDoc.SlashDoc.Path); } } ReferencePaths.AddRange(project.ReferencePaths); if (project.Namespaces==null) { NamespaceSummaries = new SortedList(); } else { NamespaceSummaries = project.Namespaces; } }
/// <summary> /// Initializes a new instance of the <see cref="AssemblyLoader"/> class. /// </summary> /// <param name="referenceDirectories">Reference directories.</param> public AssemblyLoader(ReferencePathCollection referenceDirectories) { this.assemblysLoadedFileName = new Hashtable(); this.AssemblyNameFileNameMap = new Hashtable(); this.directoryLists = new Hashtable(); this.unresolvedAssemblies = new Hashtable(); this.searchedDirectories = new Hashtable(); this.SearchDirectories = referenceDirectories; }
public DocumenterConfig () { _referencePaths = new ReferencePathCollection (); }
public DocumenterConfig () { _referencePaths = new ReferencePathCollection (); _showMissingSummaries = true; }
private void RemoveBlankPaths (ReferencePathCollection coll) { if (coll == null) return; for (int i = 0; i < coll.Count; i++) { ReferencePath refPath = coll [i]; if (refPath.Path.Length == 0) { coll.RemoveAt (i); i--; } } }
/// <inheritDoc/> public ReferencePathCollectionPropertyDescriptor (ReferencePathCollection coll, int idx) : base ("Path #" + (idx + 1).ToString (), null) { this.collection = coll; this.index = idx; }