Jo Shields 3c1f479b9d Imported Upstream version 4.0.0~alpha1
Former-commit-id: 806294f5ded97629b74c85c09952f2a74fe182d9
2015-04-07 09:35:12 +01:00

37 lines
1.3 KiB
C#

//------------------------------------------------------------------------------
// <copyright file="XmlNodeList.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
// <owner current="true" primary="true">[....]</owner>
//------------------------------------------------------------------------------
namespace System.Xml {
using System.Collections;
// Represents an ordered collection of nodes.
public abstract class XmlNodeList: IEnumerable, IDisposable {
// Retrieves a node at the given index.
public abstract XmlNode Item(int index);
// Gets the number of nodes in this XmlNodeList.
public abstract int Count { get;}
// Provides a simple ForEach-style iteration over the collection of nodes in
// this XmlNodeList.
public abstract IEnumerator GetEnumerator();
// Retrieves a node at the given index.
[System.Runtime.CompilerServices.IndexerName ("ItemOf")]
public virtual XmlNode this[int i] { get { return Item(i);}}
void IDisposable.Dispose()
{
PrivateDisposeNodeList();
}
protected virtual void PrivateDisposeNodeList() { }
}
}