Files
mono/mcs/class/System.Web/System.Web.UI.WebControls/XmlDataSourceView.cs
T
Martin Baulig dfedf08d98 2004-04-22 Martin Baulig <[email protected]>
Renamed the `NET_1_2' conditional to `NET_2_0' in all files.

svn path=/trunk/mcs/; revision=25877
2004-04-23 02:24:02 +00:00

46 lines
840 B
C#

//
// System.Web.UI.WebControls.XmlDataSourceView
//
// 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 sealed class XmlDataSourceView : DataSourceView {
public XmlDataSourceView (XmlDataSource owner, string name, XmlNodeList nodes)
{
// Why do they pass owner?
this.name = name;
this.nodes = new ArrayList (nodes.Count);
foreach (XmlNode node in nodes) {
if (node.NodeType == XmlNodeType.Element)
this.nodes.Add (node);
}
}
public override IEnumerable Select ()
{
return nodes;
}
public override string Name {
get { return name; }
}
string name;
ArrayList nodes;
}
}
#endif