⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 datakeycollection.cs

📁 不错的人事管理系统
💻 CS
字号:
using System;
using System.Collections;

namespace System.Web.UI.WebControls
{
	/// <summary>
	/// Summary description for DataKeyCollection.
	/// </summary>
	public class DataKeyCollection : System.Collections.ICollection, 
		System.Collections.IEnumerable
	{
		private System.Collections.ArrayList keys;

		public DataKeyCollection(ArrayList keys) : base() 
		{
			this.keys = keys;
		}

		public virtual void CopyTo(Array array, int index) 
		{
			IEnumerator local0;

			local0 = this.GetEnumerator();
			while (local0.MoveNext()) 
			{
				index = index + 1;
				array.SetValue(local0.Current, index);
			}
		}

		public virtual IEnumerator GetEnumerator() 
		{
			return this.keys.GetEnumerator();
		}

		public virtual int Count
		{
			get
			{
				return this.keys.Count;
			}
		}

		public bool IsReadOnly
		{
			get
			{
				return false;
			}
		}

		public bool IsSynchronized
		{
			get
			{
				return false;
			}
		}

		public object this[int index] 
		{
			get
			{
				return this.keys[index];
			}
		}

		public virtual object SyncRoot
		{
			get
			{
				return this;
			}
		}
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -