/// <devdoc>
        ///     <para>
        ///       Adds the contents of another <see cref='Microsoft.CodeDom.CodeExpressionCollection'/> to the end of the collection.
        ///    </para>
        /// </devdoc>
        public void AddRange(CodeExpressionCollection 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]);
            }
        }
 /// <devdoc>
 ///     <para>
 ///       Initializes a new instance of <see cref='Microsoft.CodeDom.CodeExpressionCollection'/> based on another <see cref='Microsoft.CodeDom.CodeExpressionCollection'/>.
 ///    </para>
 /// </devdoc>
 public CodeExpressionCollection(CodeExpressionCollection value)
 {
     this.AddRange(value);
 }
Exemple #3
0
 /// <devdoc>
 ///    <para>
 ///       Initializes a new instance of <see cref='Microsoft.CodeDom.CodeIndexerExpression'/> using the specified target
 ///       object and index.
 ///    </para>
 /// </devdoc>
 public CodeIndexerExpression(CodeExpression targetObject, params CodeExpression[] indices)
 {
     _targetObject = targetObject;
     _indices      = new CodeExpressionCollection();
     _indices.AddRange(indices);
 }