mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-18 03:51:19 -10:00
Renamed the `NET_1_2' conditional to `NET_2_0' in all files. svn path=/trunk/mcs/; revision=25877
46 lines
924 B
C#
46 lines
924 B
C#
//
|
|
// System.Web.UI.WebControls.XmlHierarchicalEnumerable
|
|
//
|
|
// Authors:
|
|
// Ben Maurer ([email protected])
|
|
//
|
|
// (C) 2003 Ben Maurer
|
|
//
|
|
|
|
#if NET_2_0
|
|
using System.Collections;
|
|
using System.Collections.Specialized;
|
|
using System.Text;
|
|
using System.Xml;
|
|
|
|
namespace System.Web.UI.WebControls {
|
|
public class XmlHierarchicalEnumerable : IHierarchicalEnumerable {
|
|
internal XmlHierarchicalEnumerable (XmlNodeList nodeList)
|
|
{
|
|
this.nodeList = nodeList;
|
|
}
|
|
|
|
IEnumerator IEnumerable.GetEnumerator ()
|
|
{
|
|
ArrayList ret = new ArrayList (nodeList.Count);
|
|
|
|
foreach (XmlNode node in nodeList) {
|
|
if (node.NodeType == XmlNodeType.Element)
|
|
ret.Add (new XmlHierarchyData (node));
|
|
}
|
|
|
|
return ret.GetEnumerator ();
|
|
}
|
|
|
|
IHierarchyData IHierarchicalEnumerable.GetHierarchyData (object enumeratedItem)
|
|
{
|
|
return (IHierarchyData) enumeratedItem;
|
|
}
|
|
|
|
XmlNodeList nodeList;
|
|
|
|
}
|
|
}
|
|
#endif
|
|
|