public void CopyTo (Array array, int index)
{
- if (array == null)
- throw new ArgumentNullException("array");
-
- if ((index < array.GetLowerBound (0)) || (index > array.GetUpperBound (0)))
- throw new ArgumentOutOfRangeException("index");
-
- // is the check for IsFixedSize required?
- if ((array.IsFixedSize) || (index + this.Count > array.GetUpperBound (0)))
- throw new ArgumentException("array");
+ if (array == null)
+ throw new ArgumentNullException("array");
- ((OleDbError[]) (items.ToArray ())).CopyTo (array, index);
+ if ((index < array.GetLowerBound (0)) || (index > array.GetUpperBound (0)))
+ throw new ArgumentOutOfRangeException("index");
+ // is the check for IsFixedSize required?
+ if ((array.IsFixedSize) || (index + this.Count > array.GetUpperBound (0)))
+ throw new ArgumentException("array");
+ ((OleDbError[]) (items.ToArray ())).CopyTo (array, index);
+ }
+
+ public void CopyTo (OleDbError [] array, int index)
+ {
+ items.CopyTo (array, index);
}
public IEnumerator GetEnumerator ()