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