public int Compare(object x, object y)
            {
                StubResultSet first  = (StubResultSet)x;
                StubResultSet second = (StubResultSet)y;

                return(first.ToString().CompareTo(second.ToString()));
            }
        public StubResultSet CreateIsDBNullResultSet()
        {
            StubResultSet srs = new StubResultSet("IsNull", "IsDBNull", "NotNull");

            srs.AddRow(null, DBNull.Value, "abc");

            return srs;
        }
 public int Add(StubResultSet value)
 {
     if (value != null)
     {
         return(this.List.Add(value));
     }
     return(-1);
 }
 public void Remove(StubResultSet value)
 {
     List.Remove(value);
 }
 public void Insert(int index, StubResultSet value)
 {
     List.Insert(index, value);
 }
 /// <summary>
 /// Gets the index in the collection of the specified <see cref="StubResultSetCollection">ResultSetCollection</see>, if it exists in the collection.
 /// </summary>
 /// <param name="value">The <see cref="StubResultSetCollection">ResultSetCollection</see> to locate in the collection.</param>
 /// <returns>The index in the collection of the specified object, if found; otherwise, -1.</returns>
 public int IndexOf(StubResultSet value)
 {
     return this.List.IndexOf(value);
 }
 /// <summary>
 /// Copies the collection Components to a one-dimensional <see cref="T:System.Array">Array</see> instance beginning at the specified index.
 /// </summary>
 /// <param name="array">The one-dimensional <see cref="T:System.Array">Array</see> that is the destination of the values copied from the collection.</param>
 /// <param name="index">The index of the array at which to begin inserting.</param>
 public void CopyTo(StubResultSet[] array, int index)
 {
     this.List.CopyTo(array, index);
 }
 /// <summary>
 /// Gets a value indicating whether the collection contains the specified <see cref="StubResultSetCollection">ResultSetCollection</see>.
 /// </summary>
 /// <param name="value">The <see cref="StubResultSetCollection">ResultSetCollection</see> to search for in the collection.</param>
 /// <returns><b>true</b> if the collection contains the specified object; otherwise, <b>false</b>.</returns>
 public bool Contains(StubResultSet value)
 {
     return this.List.Contains(value);
 }
        /// <summary>
        /// Copies the elements of the specified <see cref="StubResultSet">ResultSet</see> array to the end of the collection.
        /// </summary>
        /// <param name="value">An array of type <see cref="StubResultSet">ResultSet</see> containing the Components to add to the collection.</param>
        public void AddRange(StubResultSet[] value)
        {
            if (value == null)
                throw new ArgumentNullException("value", "Cannot add a range from null.");

            if (value != null)
            {
                for (int i = 0; (i < value.Length); i = (i + 1))
                {
                    this.Add(value[i]);
                }
            }
        }
 public int Add(StubResultSet value)
 {
     if (value != null)
     {
         return this.List.Add(value);
     }
     return -1;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="StubResultSetCollection">ResultSetCollection</see> class containing the specified array of <see cref="StubResultSet">ResultSet</see> Components.
 /// </summary>
 /// <param name="value">An array of <see cref="StubResultSet">ResultSet</see> Components with which to initialize the collection. </param>
 public StubResultSetCollection(StubResultSet[] value)
 {
     if (value != null)
     {
         this.AddRange(value);
     }
 }
 public void Remove(StubResultSet value)
 {
     List.Remove(value);
 }
 public void Insert(int index, StubResultSet value)
 {
     List.Insert(index, value);
 }
 /// <summary>
 /// Gets the index in the collection of the specified <see cref="StubResultSetCollection">ResultSetCollection</see>, if it exists in the collection.
 /// </summary>
 /// <param name="value">The <see cref="StubResultSetCollection">ResultSetCollection</see> to locate in the collection.</param>
 /// <returns>The index in the collection of the specified object, if found; otherwise, -1.</returns>
 public int IndexOf(StubResultSet value)
 {
     return(this.List.IndexOf(value));
 }
 /// <summary>
 /// Gets a value indicating whether the collection contains the specified <see cref="StubResultSetCollection">ResultSetCollection</see>.
 /// </summary>
 /// <param name="value">The <see cref="StubResultSetCollection">ResultSetCollection</see> to search for in the collection.</param>
 /// <returns><b>true</b> if the collection contains the specified object; otherwise, <b>false</b>.</returns>
 public bool Contains(StubResultSet value)
 {
     return(this.List.Contains(value));
 }