XmlNodeList.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. //
  2. // System.Xml.XmlNodeList
  3. //
  4. // Author:
  5. // Kral Ferch <[email protected]>
  6. //
  7. // (C) 2002 Kral Ferch
  8. //
  9. using System;
  10. using System.Collections;
  11. namespace System.Xml
  12. {
  13. public abstract class XmlNodeList : IEnumerable
  14. {
  15. #region Constructors
  16. ///////////////////////////////////////////////////////////////////////
  17. //
  18. // Constructors
  19. //
  20. ///////////////////////////////////////////////////////////////////////
  21. protected internal XmlNodeList() { }
  22. #endregion
  23. #region Properties
  24. ///////////////////////////////////////////////////////////////////////
  25. //
  26. // Properties
  27. //
  28. ///////////////////////////////////////////////////////////////////////
  29. public abstract int Count { get; }
  30. [System.Runtime.CompilerServices.IndexerName("ItemOf")]
  31. public virtual XmlNode this [int i] {
  32. get { return Item(i); }
  33. }
  34. #endregion
  35. #region Methods
  36. ///////////////////////////////////////////////////////////////////////
  37. //
  38. // Methods
  39. //
  40. ///////////////////////////////////////////////////////////////////////
  41. public abstract IEnumerator GetEnumerator ();
  42. public abstract XmlNode Item (int index);
  43. #endregion
  44. }
  45. }