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

📄 c_memocollection.cs

📁 1、用SQL查询器打开install目录下的dooogo.sql运行之后创建数据库dooogo。 2、然后打开web.config修改 <DbProvider type="Club.Fram
💻 CS
字号:
using System;
using System.Collections;

namespace Club.Framework.Components
{
	/// <summary>
	/// c_MemoCollection 的摘要说明。
	/// </summary>

	public class c_MemoCollection : CollectionBase
	{
		public c_MemoCollection()
		{
		}
	
		public c_MemoCollection(c_MemoCollection value)	
		{
			this.AddRange(value);
		}
	
		public c_MemoCollection(c_MemoInfo[] value)
		{
			this.AddRange(value);
		}
	
		public c_MemoInfo this[int index] 
		{
			get {return ((c_MemoInfo)(this.List[index]));}
		}
	
		public int Add(c_MemoInfo value) 
		{
			return this.List.Add(value);
		}
	
		public void AddRange(c_MemoInfo[] value) 
		{
			for (int i = 0;	(i < value.Length); i = (i + 1)) 
			{
				this.Add(value[i]);
			}
		}
	
		public void AddRange(c_MemoCollection value) 
		{
			for (int i = 0;	(i < value.Count); i = (i + 1))	
			{
				this.Add((c_MemoInfo)value.List[i]);
			}
		}
	
		public bool Contains(c_MemoInfo value) 
		{
			return this.List.Contains(value);
		}
	
		public void CopyTo(c_MemoInfo[] array, int index) 
		{
			this.List.CopyTo(array, index);
		}
	
		public c_MemoInfo[] ToArray()
		{
			c_MemoInfo[] array = new c_MemoInfo[this.Count];
			this.CopyTo(array, 0);
		
			return array;
		}
	
		public int IndexOf(c_MemoInfo value) 
		{
			return this.List.IndexOf(value);
		}
	
		public void Insert(int index, c_MemoInfo value)	
		{
			List.Insert(index, value);
		}
	
		public void Remove(c_MemoInfo value) 
		{
			List.Remove(value);
		}
	
		public new c_MemoCollectionEnumerator GetEnumerator()	
		{
			return new c_MemoCollectionEnumerator(this);
		}
	
		public class c_MemoCollectionEnumerator : IEnumerator	
		{
			private	IEnumerator _enumerator;
			private	IEnumerable _temp;
		
			public c_MemoCollectionEnumerator(c_MemoCollection mappings)
			{
				_temp =	((IEnumerable)(mappings));
				_enumerator = _temp.GetEnumerator();
			}
		
			public c_MemoInfo Current
			{
				get {return ((c_MemoInfo)(_enumerator.Current));}
			}
		
			object IEnumerator.Current
			{
				get {return _enumerator.Current;}
			}
		
			public bool MoveNext()
			{
				return _enumerator.MoveNext();
			}
		
			bool IEnumerator.MoveNext()
			{
				return _enumerator.MoveNext();
			}
		
			public void Reset()
			{
				_enumerator.Reset();
			}
		
			void IEnumerator.Reset() 
			{
				_enumerator.Reset();
			}
		}
	}
}

⌨️ 快捷键说明

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