2004-06-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
[mono.git] / mcs / class / System.Web / System.Web.UI.WebControls / SiteMapDataSourceView.cs
1 //
2 // System.Web.UI.WebControls.SiteMapDataSourceView
3 //
4 // Authors:
5 //      Ben Maurer (bmaurer@users.sourceforge.net)
6 //
7 // (C) 2003 Ben Maurer
8 //
9
10 #if NET_2_0
11 using System.Collections;
12 using System.Collections.Specialized;
13 using System.Text;
14
15 namespace System.Web.UI.WebControls {
16         public class SiteMapDataSourceView : HierarchicalDataSourceView {
17                 public SiteMapDataSourceView (SiteMapNode node) : this (new SiteMapNodeCollection (node)) {}
18                 public SiteMapDataSourceView (SiteMapNodeCollection collection)
19                 {
20                         this.collection = collection;
21                 }
22                 public override IHierarchicalEnumerable GetHierarchicalList ()
23                 {
24                         return collection;
25                 }
26                 
27                 SiteMapNodeCollection collection;
28         }
29 }
30 #endif
31