Inheritance: System.Collections.CollectionBase
コード例 #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]);
     }
 }
コード例 #2
0
ファイル: VcProject.cs プロジェクト: TheGreatMasterG/nant
        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;
        }
コード例 #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);
 }
コード例 #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();
        }
コード例 #5
0
ファイル: ProjectBase.cs プロジェクト: smaclell/NAnt
 /// <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]);
     }
 }
コード例 #6
0
ファイル: ProjectBase.cs プロジェクト: smaclell/NAnt
 /// <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);
 }
コード例 #7
0
ファイル: ProjectBase.cs プロジェクト: smaclell/NAnt
 /// <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();
 }