2003-02-28 Alan Tam <Tam@SiuLung.com>
[mono.git] / mcs / class / System.XML / System.Xml / XmlNodeList.cs
index 1d166b9f118c0300cdd9cfbd9e68ba93c7b5f402..eff56279b558acbdafec839e94367f97c92986be 100644 (file)
@@ -1,42 +1,42 @@
+//
+// System.Xml.XmlNodeList
+//
+// Author:
+//   Kral Ferch <kral_ferch@hotmail.com>
+//
+// (C) 2002 Kral Ferch
+//
+
 using System;
 using System.Collections;
 
 namespace System.Xml
 {
-       /// <summary>
-       /// Abstract class XmlNodeList.
-       /// </summary>
        public abstract class XmlNodeList : IEnumerable
        {
-               // public properties
-               public abstract int Count { get; }
+               #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);
-                       }
+               public virtual XmlNode this [int i]     {
+                       get { return Item(i); }
                }
 
-               // Public Methods
-               /// <summary>
-               /// Abstract.  Return the enumerator for the class.
-               /// </summary>
-               /// <returns>Enumerator</returns>
-               public abstract IEnumerator GetEnumerator();
-
-               /// <summary>
-               /// Abstract.  Returns the item at index.  Index is 0-based.
-               /// </summary>
-               /// <param name="index"></param>
-               /// <returns></returns>
-               public abstract XmlNode Item(int index);
-               
-               public XmlNodeList()
-               {
-                       // TODO: What should be done in constructor for XmlNodeList.XmlNodeList()? (nothing)
-               }
+               #endregion
+
+               #region Methods
+
+               public abstract IEnumerator GetEnumerator ();
+
+               public abstract XmlNode Item (int index);
+
+               #endregion
        }
 }