Files
mono/mcs/class/System.XML/System.Xml/XmlNodeList.cs
T
Daniel Weber 04639cc5f0 finish adding stubs to begin work on XmlDocuemnt.Load(file)
Most files are merely placeholders.

svn path=/trunk/mcs/; revision=1390
2001-11-19 20:30:08 +00:00

43 lines
1023 B
C#

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; }
[System.Runtime.CompilerServices.IndexerName("ItemOf")]
public virtual XmlNode this[int i]
{
get
{
throw new NotImplementedException("XmlNodeList indexer must be implemented by derived class.");
}
}
// 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)
}
}
}