mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-17 01:41:17 -10:00
* BaseValidator.cs -- Rejuvination. * **.cs (Added) -- Completed ones (I guess) * ChangeLog -- DON'T MISS THIS * TODO -- Updated in accordance.. NOW I HAVE ONLY ONE CLASS THAT REMAINS 0% implemented and that is Repeater. I will start work on it soon. svn path=/trunk/mcs/; revision=2868
83 lines
1.2 KiB
C#
83 lines
1.2 KiB
C#
/**
|
|
* Namespace: System.Web.UI.WebControls
|
|
* Class: DataKeyCollection
|
|
*
|
|
* Author: Gaurav Vaish
|
|
* Maintainer: [email protected]
|
|
* Contact: <[email protected]>, <[email protected]>
|
|
* Implementation: yes
|
|
* Status: 100%
|
|
*
|
|
* (C) Gaurav Vaish (2002)
|
|
*/
|
|
|
|
using System;
|
|
using System.Web;
|
|
using System.Web.UI;
|
|
|
|
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
|
|
{
|
|
return keys.Count;
|
|
}
|
|
}
|
|
|
|
public bool IsReadOnly
|
|
{
|
|
get
|
|
{
|
|
return false;
|
|
}
|
|
}
|
|
|
|
public bool IsSynchronized
|
|
{
|
|
get
|
|
{
|
|
return false;
|
|
}
|
|
}
|
|
|
|
public object this[int index]
|
|
{
|
|
get
|
|
{
|
|
return keys[index];
|
|
}
|
|
}
|
|
|
|
public object SyncRoot
|
|
{
|
|
get
|
|
{
|
|
return this;
|
|
}
|
|
}
|
|
|
|
public void CopyTo(Array array, int index)
|
|
{
|
|
foreach(object current in this)
|
|
{
|
|
array.SetValue(current, index++);
|
|
}
|
|
}
|
|
|
|
public IEnumerator GetEnumerator()
|
|
{
|
|
return keys.GetEnumerator();
|
|
}
|
|
}
|
|
}
|