AddRange() public method

Adds the elements of an ICollection to the end of the collection.
is a .
public AddRange ( ICollection c ) : void
c ICollection The whose elements should be added to the end of the collection. /// The collection itself cannot be a .
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;
			}
		}