OleDbErrorCollection.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. //
  2. // System.Data.OleDb.OleDbErrorCollection
  3. //
  4. // Authors:
  5. // Rodrigo Moya ([email protected])
  6. // Tim Coleman ([email protected])
  7. //
  8. // Copyright (C) Rodrigo Moya, 2002
  9. // Copyright (C) Tim Coleman, 2002
  10. //
  11. using System.Collections;
  12. using System.Data;
  13. using System.Data.Common;
  14. namespace System.Data.OleDb
  15. {
  16. public sealed class OleDbErrorCollection : ICollection, IEnumerable
  17. {
  18. #region Fields
  19. ArrayList list;
  20. #endregion // Fields
  21. #region Properties
  22. public int Count {
  23. get { return list.Count; }
  24. }
  25. public OleDbError this[int index] {
  26. get { return (OleDbError) list[index]; }
  27. }
  28. object ICollection.SyncRoot {
  29. get { return list.SyncRoot; }
  30. }
  31. bool ICollection.IsSynchronized {
  32. get { return list.IsSynchronized; }
  33. }
  34. #endregion // Properties
  35. #region Methods
  36. [MonoTODO]
  37. public void CopyTo (Array array, int index)
  38. {
  39. ((OleDbError[])(list.ToArray ())).CopyTo (array, index);
  40. throw new NotImplementedException ();
  41. }
  42. public IEnumerator GetEnumerator ()
  43. {
  44. return list.GetEnumerator ();
  45. }
  46. IEnumerator IEnumerable.GetEnumerator ()
  47. {
  48. return GetEnumerator ();
  49. }
  50. #endregion // Methods
  51. }
  52. }