Exemple #1
0
 /// <summary>
 /// Adds the contents of another <see cref="OnlineUserInfoCollection">OnlineUserInfoCollection</see> to the end of the collection.
 /// </summary>
 /// <param name="value">A <see cref="OnlineUserInfoCollection">OnlineUserInfoCollection</see> containing the Components to add to the collection. </param>
 public void AddRange(OnlineUserInfoCollection value)
 {
     for (int i = 0; (i < value.Count); i = (i + 1))
     {
         this.Add((OnlineUserInfo)value.List[i]);
     }
 }
		/// <summary>
		/// Adds the contents of another <see cref="OnlineUserInfoCollection">OnlineUserInfoCollection</see> to the end of the collection.
		/// </summary>
		/// <param name="value">A <see cref="OnlineUserInfoCollection">OnlineUserInfoCollection</see> containing the Components to add to the collection. </param>
		public void AddRange(OnlineUserInfoCollection value) 
		{
			for (int i = 0;	(i < value.Count); i = (i +	1))	
			{
				this.Add((OnlineUserInfo)value.List[i]);
			}
		}
Exemple #3
0
        /// <summary>
        /// 返回在线用户列表
        /// </summary>
        /// <param name="totaluser">全部用户数</param>
        /// <param name="guest">游客数</param>
        /// <param name="user">登录用户数</param>
        /// <param name="invisibleuser">隐身会员数</param>
        /// <returns></returns>
#if NET1
        public static OnlineUserInfoCollection GetOnlineUserCollection(out int totaluser, out int guest, out int user, out int invisibleuser)
		{
			OnlineUserInfoCollection coll = new OnlineUserInfoCollection();
Exemple #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="OnlineUserInfoCollection">OnlineUserInfoCollection</see> class containing the elements of the specified source collection.
 /// </summary>
 /// <param name="value">A <see cref="OnlineUserInfoCollection">OnlineUserInfoCollection</see> with which to initialize the collection.</param>
 public OnlineUserInfoCollection(OnlineUserInfoCollection value)
 {
     this.AddRange(value);
 }
Exemple #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="OnlineUserInfoCollectionEnumerator">OnlineUserInfoCollectionEnumerator</see> class referencing the specified <see cref="OnlineUserInfoCollection">OnlineUserInfoCollection</see> object.
 /// </summary>
 /// <param name="mappings">The <see cref="OnlineUserInfoCollection">OnlineUserInfoCollection</see> to enumerate.</param>
 public OnlineUserInfoCollectionEnumerator(OnlineUserInfoCollection mappings)
 {
     _temp       = ((IEnumerable)(mappings));
     _enumerator = _temp.GetEnumerator();
 }
		/// <summary>
		/// Initializes a new instance of the <see cref="OnlineUserInfoCollection">OnlineUserInfoCollection</see> class containing the elements of the specified source collection.
		/// </summary>
		/// <param name="value">A <see cref="OnlineUserInfoCollection">OnlineUserInfoCollection</see> with which to initialize the collection.</param>
		public OnlineUserInfoCollection(OnlineUserInfoCollection value)	
		{
			this.AddRange(value);
		}
			/// <summary>
			/// Initializes a new instance of the <see cref="OnlineUserInfoCollectionEnumerator">OnlineUserInfoCollectionEnumerator</see> class referencing the specified <see cref="OnlineUserInfoCollection">OnlineUserInfoCollection</see> object.
			/// </summary>
			/// <param name="mappings">The <see cref="OnlineUserInfoCollection">OnlineUserInfoCollection</see> to enumerate.</param>
			public OnlineUserInfoCollectionEnumerator(OnlineUserInfoCollection mappings)
			{
				_temp =	((IEnumerable)(mappings));
				_enumerator = _temp.GetEnumerator();
			}