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

            _baseEnumerator = temp.GetEnumerator();
        }
        /// <summary>
        /// Processes the framework environment variables.
        /// </summary>
        /// <param name="environmentNodes">An <see cref="XmlNodeList" /> representing framework environment variables.</param>
        /// <param name="framework">The <see cref="FrameworkInfo" /> to obtain framework-specific information from.</param>
        private EnvironmentVariableCollection ProcessFrameworkEnvironmentVariables(XmlNodeList environmentNodes, FrameworkInfo framework)
        {
            EnvironmentVariableCollection frameworkEnvironment = null;

            // initialize framework-specific environment variables
            frameworkEnvironment = new EnvironmentVariableCollection();

            foreach (XmlNode environmentNode in environmentNodes) {
                // skip non-nant namespace elements and special elements like comments, pis, text, etc.
                if (!(environmentNode.NodeType == XmlNodeType.Element)) {
                    continue;
                }

                // initialize element
                EnvironmentVariable environmentVariable = new EnvironmentVariable();
                environmentVariable.Parent = environmentVariable.Project = framework.Project;
                environmentVariable.NamespaceManager = NamespaceManager;

                // configure using xml node
                environmentVariable.Initialize(environmentNode, framework.Project.Properties,
                    framework);

                // add to collection of environment variables
                frameworkEnvironment.Add(environmentVariable);
            }

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