X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2FSystem.Web%2FSystem.Web%2FSiteMapNodeCollection.cs;h=ed431ac4aef8e32cc99d6bcddb17afa069c9c95d;hb=b6969f355f56af8e2b62fa705f799e87f5226502;hp=13b1536666b10338d0d6d130046853dc72f51de0;hpb=89d0ba3968d36576553e0f483b0c69465f94e8ae;p=mono.git diff --git a/mcs/class/System.Web/System.Web/SiteMapNodeCollection.cs b/mcs/class/System.Web/System.Web/SiteMapNodeCollection.cs index 13b1536666b..ed431ac4aef 100644 --- a/mcs/class/System.Web/System.Web/SiteMapNodeCollection.cs +++ b/mcs/class/System.Web/System.Web/SiteMapNodeCollection.cs @@ -42,7 +42,16 @@ namespace System.Web public class SiteMapNodeCollection : IList, IHierarchicalEnumerable { ArrayList list; +#if TARGET_JVM + const string _siteMapNodeCollection_EmptyList = "SiteMapNodeCollection.EmptyList"; + internal static SiteMapNodeCollection EmptyList + { + get { return (SiteMapNodeCollection) AppDomain.CurrentDomain.GetData (_siteMapNodeCollection_EmptyList); } + set { AppDomain.CurrentDomain.SetData (_siteMapNodeCollection_EmptyList, value); } + } +#else internal static SiteMapNodeCollection EmptyList; +#endif static SiteMapNodeCollection () { @@ -205,7 +214,9 @@ namespace System.Web public virtual bool IsReadOnly { get { return list != null && list.IsReadOnly; } } - + + #region IList Members + object IList.this [int index] { get { return List [index]; } set { OnValidate (value); List [index] = value; } @@ -243,6 +254,57 @@ namespace System.Web { List.CopyTo (array, index); } + + void IList.Clear () { + Clear (); + } + + bool IList.IsFixedSize { + get { return IsFixedSize; } + } + + bool IList.IsReadOnly { + get { return IsReadOnly; } + } + + void IList.RemoveAt (int index) { + RemoveAt (index); + } + + #endregion + + #region ICollection Members + + + int ICollection.Count { + get { return Count; } + } + + bool ICollection.IsSynchronized { + get { return IsSynchronized; } + } + + object ICollection.SyncRoot { + get { return SyncRoot; } + } + + #endregion + + #region IEnumerable Members + + IEnumerator IEnumerable.GetEnumerator () { + return GetEnumerator (); + } + + #endregion + + #region IHierarchicalEnumerable Members + + IHierarchyData IHierarchicalEnumerable.GetHierarchyData (object enumeratedItem) { + return GetHierarchyData (enumeratedItem); + } + + #endregion } } #endif