Inheritance: System.Collections.CollectionBase
Exemple #1
0
 /// <summary>
 /// Adds the elements of a <see cref="ProjectBaseCollection"/> to the end of the collection.
 /// </summary>
 /// <param name="items">The <see cref="ProjectBaseCollection"/> to be added to the end of the collection.</param>
 public void AddRange(ProjectBaseCollection items)
 {
     for (int i = 0; (i < items.Count); i = (i + 1))
     {
         Add(items[i]);
     }
 }
Exemple #2
0
        private ProjectBaseCollection GetVcProjectDependencies()
        {
            ProjectBaseCollection vcProjectDependencies = new ProjectBaseCollection();
            foreach (ProjectBase projectDependency in ProjectDependencies) {
                if (projectDependency is VcProject) {
                    vcProjectDependencies.Add(projectDependency);
                }
            }

            foreach (ReferenceBase reference in References) {
                // skip non-project reference
                ProjectReferenceBase projectReference = reference as ProjectReferenceBase;
                if (projectReference == null) {
                    continue;
                }

                // check if we're dealing with reference to VC++ project
                VcProject vcProject = projectReference.Project as VcProject;
                if (vcProject == null) {
                    continue;
                }

                // skip projects that have already been added to collection
                if (vcProjectDependencies.Contains(vcProject)) {
                    continue;
                }

                vcProjectDependencies.Add(vcProject);
            }

            return vcProjectDependencies;
        }
Exemple #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ProjectBaseCollection"/> class
 /// with the specified <see cref="ProjectBaseCollection"/> instance.
 /// </summary>
 public ProjectBaseCollection(ProjectBaseCollection value)
 {
     AddRange(value);
 }
Exemple #4
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ProjectBaseEnumerator"/> class
        /// with the specified <see cref="ProjectBaseCollection"/>.
        /// </summary>
        /// <param name="arguments">The collection that should be enumerated.</param>
        internal ProjectBaseEnumerator(ProjectBaseCollection arguments)
        {
            IEnumerable temp = (IEnumerable)(arguments);

            _baseEnumerator = temp.GetEnumerator();
        }
Exemple #5
0
 /// <summary>
 /// Adds the elements of a <see cref="ProjectBaseCollection"/> to the end of the collection.
 /// </summary>
 /// <param name="items">The <see cref="ProjectBaseCollection"/> to be added to the end of the collection.</param> 
 public void AddRange(ProjectBaseCollection items)
 {
     for (int i = 0; (i < items.Count); i = (i + 1)) {
         Add(items[i]);
     }
 }
Exemple #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ProjectBaseCollection"/> class
 /// with the specified <see cref="ProjectBaseCollection"/> instance.
 /// </summary>
 public ProjectBaseCollection(ProjectBaseCollection value)
 {
     AddRange(value);
 }
Exemple #7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ProjectBaseEnumerator"/> class
 /// with the specified <see cref="ProjectBaseCollection"/>.
 /// </summary>
 /// <param name="arguments">The collection that should be enumerated.</param>
 internal ProjectBaseEnumerator(ProjectBaseCollection arguments)
 {
     IEnumerable temp = (IEnumerable) (arguments);
     _baseEnumerator = temp.GetEnumerator();
 }