/// <summary>
 /// Initializes a new instance of the <see cref="StubResultSetCollection">ResultSetCollection</see> class containing the elements of the specified source collection.
 /// </summary>
 /// <param name="value">A <see cref="StubResultSetCollection">ResultSetCollection</see> with which to initialize the collection.</param>
 public StubResultSetCollection(StubResultSetCollection value)
 {
     if (value != null)
     {
         this.AddRange(value);
     }
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="StubDataReader"/> class.
 /// Each row in the arraylist is a result set.
 /// </summary>
 /// <param name="resultSets">The result sets to add.</param>
 public StubDataReader(params StubResultSet[] resultSets)
 {
     this.stubResultSets = new StubResultSetCollection();
     foreach (StubResultSet resultSet in resultSets)
     {
         this.stubResultSets.Add(resultSet);
     }
 }
        /// <summary>
        /// Adds the contents of another <see cref="StubResultSetCollection">ResultSetCollection</see> to the end of the collection.
        /// </summary>
        /// <param name="value">A <see cref="StubResultSetCollection">ResultSetCollection</see> containing the Components to add to the collection. </param>
        public void AddRange(StubResultSetCollection value)
        {
            if (value == null)
            {
                throw new ArgumentNullException("value", "Cannot add a range from null.");
            }

            if (value != null)
            {
                for (int i = 0; (i < value.Count); i = (i + 1))
                {
                    this.Add((StubResultSet)value.List[i]);
                }
            }
        }
Example #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="StubDataReader"/> class. 
 /// Each row in the arraylist is a result set.
 /// </summary>
 /// <param name="resultSets">The result sets to add.</param>
 public StubDataReader(params StubResultSet[] resultSets)
 {
     this.stubResultSets = new StubResultSetCollection();
     foreach (StubResultSet resultSet in resultSets)
     {
         this.stubResultSets.Add(resultSet);
     }
 }
Example #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="StubDataReader"/> class. 
 /// Each row in the arraylist is a result set.
 /// </summary>
 /// <param name="stubResultSets">The result sets.</param>
 public StubDataReader(StubResultSetCollection stubResultSets)
 {
     this.stubResultSets = stubResultSets;
 }
Example #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ResultSetCollectionEnumerator">ResultSetCollectionEnumerator</see> class referencing the specified <see cref="StubResultSetCollection">ResultSetCollection</see> object.
 /// </summary>
 /// <param name="mappings">The <see cref="StubResultSetCollection">ResultSetCollection</see> to enumerate.</param>
 public ResultSetCollectionEnumerator(StubResultSetCollection mappings)
 {
     _temp = mappings;
     _enumerator = _temp.GetEnumerator();
 }
Example #7
0
        /// <summary>
        /// Adds the contents of another <see cref="StubResultSetCollection">ResultSetCollection</see> to the end of the collection.
        /// </summary>
        /// <param name="value">A <see cref="StubResultSetCollection">ResultSetCollection</see> containing the Components to add to the collection. </param>
        public void AddRange(StubResultSetCollection value)
        {
            if (value == null)
                throw new ArgumentNullException("value", "Cannot add a range from null.");

            if (value != null)
            {
                for (int i = 0; (i < value.Count); i = (i + 1))
                {
                    this.Add((StubResultSet)value.List[i]);
                }
            }
        }
Example #8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="StubResultSetCollection">ResultSetCollection</see> class containing the elements of the specified source collection.
 /// </summary>
 /// <param name="value">A <see cref="StubResultSetCollection">ResultSetCollection</see> with which to initialize the collection.</param>
 public StubResultSetCollection(StubResultSetCollection value)
 {
     if (value != null)
     {
         this.AddRange(value);
     }
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ResultSetCollectionEnumerator">ResultSetCollectionEnumerator</see> class referencing the specified <see cref="StubResultSetCollection">ResultSetCollection</see> object.
 /// </summary>
 /// <param name="mappings">The <see cref="StubResultSetCollection">ResultSetCollection</see> to enumerate.</param>
 public ResultSetCollectionEnumerator(StubResultSetCollection mappings)
 {
     _temp       = mappings;
     _enumerator = _temp.GetEnumerator();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="StubDataReader"/> class.
 /// Each row in the arraylist is a result set.
 /// </summary>
 /// <param name="stubResultSets">The result sets.</param>
 public StubDataReader(StubResultSetCollection stubResultSets)
 {
     this.stubResultSets = stubResultSets;
 }