Ejemplo n.º 1
0
        /// <devdoc>
        ///     <para>
        ///       Adds the contents of another <see cref='Microsoft.CodeDom.CodeNamespaceCollection'/> to the end of the collection.
        ///    </para>
        /// </devdoc>
        public void AddRange(CodeNamespaceCollection value)
        {
            if (value == null)
            {
                throw new ArgumentNullException("value");
            }
            int currentCount = value.Count;

            for (int i = 0; i < currentCount; i = ((i) + (1)))
            {
                this.Add(value[i]);
            }
        }
Ejemplo n.º 2
0
 /// <devdoc>
 ///     <para>
 ///       Initializes a new instance of <see cref='Microsoft.CodeDom.CodeNamespaceCollection'/> based on another <see cref='Microsoft.CodeDom.CodeNamespaceCollection'/>.
 ///    </para>
 /// </devdoc>
 public CodeNamespaceCollection(CodeNamespaceCollection value)
 {
     this.AddRange(value);
 }