Beispiel #1
0
        /// <devdoc>
        ///     <para>
        ///       Adds the contents of another <see cref='Microsoft.CodeDom.CodeTypeDeclarationCollection'/> to the end of the collection.
        ///    </para>
        /// </devdoc>
        public void AddRange(CodeTypeDeclarationCollection 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]);
            }
        }
Beispiel #2
0
 /// <devdoc>
 ///     <para>
 ///       Initializes a new instance of <see cref='Microsoft.CodeDom.CodeTypeDeclarationCollection'/> based on another <see cref='Microsoft.CodeDom.CodeTypeDeclarationCollection'/>.
 ///    </para>
 /// </devdoc>
 public CodeTypeDeclarationCollection(CodeTypeDeclarationCollection value)
 {
     this.AddRange(value);
 }