Add() public method

Adds the specified ReferencePath object to the collection.
If the path in refPath matches one already existing in the collection, the operation is silently ignored.
is a .
public Add ( ReferencePath, refPath ) : void
refPath ReferencePath, The to add to the collection.
return void
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;
			}
		}