XmlNodeListChildren implements XmlNodeList for XmlNode.ChildNodes
[mono.git] / mcs / class / System.XML / System.Xml / XmlNodeList.cs
1 //
2 // System.Xml.XmlNodeList
3 //
4 // Author:
5 //   Kral Ferch <kral_ferch@hotmail.com>
6 //
7 // (C) 2002 Kral Ferch
8 //
9
10 using System;
11 using System.Collections;
12
13 namespace System.Xml
14 {
15         public abstract class XmlNodeList : IEnumerable
16         {
17                 #region Constructors
18                 ///////////////////////////////////////////////////////////////////////
19                 //
20                 //      Constructors
21                 //
22                 ///////////////////////////////////////////////////////////////////////
23
24                 protected internal XmlNodeList() { }
25
26                 #endregion
27
28                 #region Properties
29                 ///////////////////////////////////////////////////////////////////////
30                 //
31                 //      Properties
32                 //
33                 ///////////////////////////////////////////////////////////////////////
34
35                 public abstract int Count {     get; }
36
37                 [System.Runtime.CompilerServices.IndexerName("ItemOf")]
38                 public virtual XmlNode this [int i]     {
39                         get { return Item(i); }
40                 }
41
42                 #endregion
43
44                 #region Methods
45                 ///////////////////////////////////////////////////////////////////////
46                 //
47                 //      Methods
48                 //
49                 ///////////////////////////////////////////////////////////////////////
50
51                 public abstract IEnumerator GetEnumerator ();
52
53                 public abstract XmlNode Item (int index);
54
55                 #endregion
56         }
57 }