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

📄 c_friendcollection.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_FriendCollection 的摘要说明。
	/// </summary>

	public class c_FriendCollection : CollectionBase
	{
		public c_FriendCollection()
		{
		}
	
		public c_FriendCollection(c_FriendCollection value)	
		{
			this.AddRange(value);
		}
	
		public c_FriendCollection(c_FriendInfo[] value)
		{
			this.AddRange(value);
		}
	
		public c_FriendInfo this[int index] 
		{
			get {return ((c_FriendInfo)(this.List[index]));}
		}
	
		public int Add(c_FriendInfo value) 
		{
			return this.List.Add(value);
		}
	
		public void AddRange(c_FriendInfo[] value) 
		{
			for (int i = 0;	(i < value.Length); i = (i + 1)) 
			{
				this.Add(value[i]);
			}
		}
	
		public void AddRange(c_FriendCollection value) 
		{
			for (int i = 0;	(i < value.Count); i = (i + 1))	
			{
				this.Add((c_FriendInfo)value.List[i]);
			}
		}
	
		public bool Contains(c_FriendInfo value) 
		{
			return this.List.Contains(value);
		}
	
		public void CopyTo(c_FriendInfo[] array, int index) 
		{
			this.List.CopyTo(array, index);
		}
	
		public c_FriendInfo[] ToArray()
		{
			c_FriendInfo[] array = new c_FriendInfo[this.Count];
			this.CopyTo(array, 0);
		
			return array;
		}
	
		public int IndexOf(c_FriendInfo value) 
		{
			return this.List.IndexOf(value);
		}
	
		public void Insert(int index, c_FriendInfo value)	
		{
			List.Insert(index, value);
		}
	
		public void Remove(c_FriendInfo value) 
		{
			List.Remove(value);
		}
	
		public new c_FriendCollectionEnumerator GetEnumerator()	
		{
			return new c_FriendCollectionEnumerator(this);
		}
	
		public class c_FriendCollectionEnumerator : IEnumerator	
		{
			private	IEnumerator _enumerator;
			private	IEnumerable _temp;
		
			public c_FriendCollectionEnumerator(c_FriendCollection mappings)
			{
				_temp =	((IEnumerable)(mappings));
				_enumerator = _temp.GetEnumerator();
			}
		
			public c_FriendInfo Current
			{
				get {return ((c_FriendInfo)(_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 + -