-using System;\r
-using System.Collections;\r
-\r
-namespace System.Xml\r
-{\r
- /// <summary>\r
- /// Abstract class XmlNodeList.\r
- /// </summary>\r
- public abstract class XmlNodeList : IEnumerable\r
- {\r
- // public properties\r
- public abstract int Count { get; }\r
-\r
- [System.Runtime.CompilerServices.IndexerName("ItemOf")]\r
- public virtual XmlNode this[int i] \r
- {\r
- get\r
- {\r
- throw new NotImplementedException("XmlNodeList indexer must be implemented by derived class.");\r
- }\r
- }\r
-\r
- // Public Methods\r
- /// <summary>\r
- /// Abstract. Return the enumerator for the class.\r
- /// </summary>\r
- /// <returns>Enumerator</returns>\r
- public abstract IEnumerator GetEnumerator();\r
-\r
- /// <summary>\r
- /// Abstract. Returns the item at index. Index is 0-based.\r
- /// </summary>\r
- /// <param name="index"></param>\r
- /// <returns></returns>\r
- public abstract XmlNode Item(int index);\r
- \r
- public XmlNodeList()\r
- {\r
- // TODO: What should be done in constructor for XmlNodeList.XmlNodeList()? (nothing)\r
- }\r
- }\r
-}\r
+//
+// System.Xml.XmlNodeList
+//
+// Author:
+// Kral Ferch <kral_ferch@hotmail.com>
+//
+// (C) 2002 Kral Ferch
+//
+
+using System;
+using System.Collections;
+
+namespace System.Xml
+{
+ public abstract class XmlNodeList : IEnumerable
+ {
+ #region Constructors
+
+ protected XmlNodeList() { }
+
+ #endregion
+
+ #region Properties
+
+ public abstract int Count { get; }
+
+ [System.Runtime.CompilerServices.IndexerName("ItemOf")]
+ public virtual XmlNode this [int i] {
+ get { return Item(i); }
+ }
+
+ #endregion
+
+ #region Methods
+
+ public abstract IEnumerator GetEnumerator ();
+
+ public abstract XmlNode Item (int index);
+
+ #endregion
+ }
+}