mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-17 11:21:39 -10:00
* Trying to go for a build... changes due to the same... svn path=/trunk/mcs/; revision=3139
84 lines
1.2 KiB
C#
84 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.Collections;
|
|
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();
|
|
}
|
|
}
|
|
}
|