Inheritance: CollectionBase, ICustomTypeDescriptor
Esempio n. 1
0
		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;
			}
		}
Esempio n. 2
0
		/// <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;
		}
Esempio n. 3
0
	public DocumenterConfig ()
	{
		_referencePaths = new ReferencePathCollection ();
	}
Esempio n. 4
0
	public DocumenterConfig ()
	{
		_referencePaths = new ReferencePathCollection ();
		_showMissingSummaries = true;
	}
Esempio n. 5
0
		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--;
				}
			}
		}
Esempio n. 6
0
		/// <inheritDoc/>
		public ReferencePathCollectionPropertyDescriptor (ReferencePathCollection coll, int idx)
			:
			base ("Path #" + (idx + 1).ToString (), null)
		{
			this.collection = coll;
			this.index = idx;
		}