2 // System.Data.OleDb.OleDbErrorCollection
5 // Rodrigo Moya (rodrigo@ximian.com)
6 // Tim Coleman (tim@timcoleman.com)
8 // Copyright (C) Rodrigo Moya, 2002
9 // Copyright (C) Tim Coleman, 2002
12 using System.Collections;
14 using System.Data.Common;
16 namespace System.Data.OleDb
18 public sealed class OleDbErrorCollection : ICollection, IEnumerable
29 get { return list.Count; }
32 public OleDbError this[int index] {
33 get { return (OleDbError) list[index]; }
36 object ICollection.SyncRoot {
37 get { return list.SyncRoot; }
40 bool ICollection.IsSynchronized {
41 get { return list.IsSynchronized; }
44 #endregion // Properties
49 public void CopyTo (Array array, int index)
51 ((OleDbError[])(list.ToArray ())).CopyTo (array, index);
52 throw new NotImplementedException ();
55 public IEnumerator GetEnumerator ()
57 return list.GetEnumerator ();
60 IEnumerator IEnumerable.GetEnumerator ()
62 return GetEnumerator ();