X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2FSystem.Web%2FSystem.Web.UI.WebControls%2FDataKeyCollection.cs;h=f4a010ac49bb87828b4ac7ba32d848e1186f88e7;hb=ea05be005d9752f8e2ae96fdeeee8f524bc7f408;hp=528c6d8d87e0b76fb29107ca8eef0879d843cd88;hpb=d93009d8102040f57858c3e3c5aedf6cde90eaea;p=mono.git diff --git a/mcs/class/System.Web/System.Web.UI.WebControls/DataKeyCollection.cs b/mcs/class/System.Web/System.Web.UI.WebControls/DataKeyCollection.cs index 528c6d8d87e..f4a010ac49b 100644 --- a/mcs/class/System.Web/System.Web.UI.WebControls/DataKeyCollection.cs +++ b/mcs/class/System.Web/System.Web.UI.WebControls/DataKeyCollection.cs @@ -1,17 +1,18 @@ /** * Namespace: System.Web.UI.WebControls * Class: DataKeyCollection - * + * * Author: Gaurav Vaish * Maintainer: gvaish@iitk.ac.in * Contact: , * Implementation: yes * Status: 100% - * + * * (C) Gaurav Vaish (2002) */ using System; +using System.Collections; using System.Web; using System.Web.UI; @@ -20,12 +21,12 @@ namespace System.Web.UI.WebControls public sealed class DataKeyCollection : ICollection, IEnumerable { private ArrayList keys; - + public DataKeyCollection(ArrayList keys) { this.keys = keys; } - + public int Count { get @@ -33,7 +34,7 @@ namespace System.Web.UI.WebControls return keys.Count; } } - + public bool IsReadOnly { get @@ -41,7 +42,7 @@ namespace System.Web.UI.WebControls return false; } } - + public bool IsSynchronized { get @@ -49,7 +50,7 @@ namespace System.Web.UI.WebControls return false; } } - + public object this[int index] { get @@ -57,7 +58,7 @@ namespace System.Web.UI.WebControls return keys[index]; } } - + public object SyncRoot { get @@ -65,7 +66,7 @@ namespace System.Web.UI.WebControls return this; } } - + public void CopyTo(Array array, int index) { foreach(object current in this) @@ -73,7 +74,7 @@ namespace System.Web.UI.WebControls array.SetValue(current, index++); } } - + public IEnumerator GetEnumerator() { return keys.GetEnumerator();