/// <summary>
		/// Copies the elements of the specified <see cref="ShowforumPageTopicInfo">ShowforumPageTopicInfo</see> array to the end of the collection.
		/// </summary>
		/// <param name="value">An array of type <see cref="ShowforumPageTopicInfo">ShowforumPageTopicInfo</see> containing the Components to add to the collection.</param>
		public void AddRange(ShowforumPageTopicInfo[] value) 
		{
			for (int i = 0;	(i < value.Length); i = (i + 1)) 
			{
				this.Add(value[i]);
			}
		}
Ejemplo n.º 2
0
 /// <summary>
 /// 排序增加
 /// </summary>
 /// <param name="value"></param>
 /// <returns></returns>
 public int SortAdd(ShowforumPageTopicInfo value)
 {
     if (this.List.Count <= 0)
     {
         return(this.List.Add(value));
     }
     else
     {
         for (int i = 0; i < this.List.Count; i++)
         {
             if ((value.Displayorder) > (this[i].Displayorder))
             {
                 this.List.Insert(i, value);
                 return(i);
             }
         }
         return(this.List.Add(value));
     }
 }
		/// <summary>
		/// 排序增加
		/// </summary>
		/// <param name="value"></param>
		/// <returns></returns>
		public int SortAdd(ShowforumPageTopicInfo value) 
		{
			if (this.List.Count <= 0)
			{
				return this.List.Add(value);
			}
			else
			{
				for (int i = 0;	i < this.List.Count; i++) 
				{
					if ((value.Displayorder) > (this[i].Displayorder))
					{
						this.List.Insert(i, value);
						return i;
					}
				}
				return this.List.Add(value);
				
			}
		}
		public int Add(ShowforumPageTopicInfo value) 
		{
			return this.List.Add(value);
		}
		/// <summary>
		/// Initializes a new instance of the <see cref="ShowforumPageTopicInfoCollection">ShowforumPageTopicInfoCollection</see> class containing the specified array of <see cref="ShowforumPageTopicInfo">ShowforumPageTopicInfo</see> Components.
		/// </summary>
		/// <param name="value">An array of <see cref="ShowforumPageTopicInfo">ShowforumPageTopicInfo</see> Components with which to initialize the collection. </param>
		public ShowforumPageTopicInfoCollection(ShowforumPageTopicInfo[] value)
		{
			this.AddRange(value);
		}
		public void Remove(ShowforumPageTopicInfo value) 
		{
			List.Remove(value);
		}
		public void Insert(int index, ShowforumPageTopicInfo value)	
		{
			List.Insert(index, value);
		}
		/// <summary>
		/// Gets the index in the collection of the specified <see cref="ShowforumPageTopicInfoCollection">ShowforumPageTopicInfoCollection</see>, if it exists in the collection.
		/// </summary>
		/// <param name="value">The <see cref="ShowforumPageTopicInfoCollection">ShowforumPageTopicInfoCollection</see> to locate in the collection.</param>
		/// <returns>The index in the collection of the specified object, if found; otherwise, -1.</returns>
		public int IndexOf(ShowforumPageTopicInfo value) 
		{
			return this.List.IndexOf(value);
		}
		/// <summary>
		/// Copies the collection Components to a one-dimensional <see cref="T:System.Array">Array</see> instance beginning at the specified index.
		/// </summary>
		/// <param name="array">The one-dimensional <see cref="T:System.Array">Array</see> that is the destination of the values copied from the collection.</param>
		/// <param name="index">The index of the array at which to begin inserting.</param>
		public void CopyTo(ShowforumPageTopicInfo[] array, int index) 
		{
			this.List.CopyTo(array, index);
		}
		/// <summary>
		/// Gets a value indicating whether the collection contains the specified <see cref="ShowforumPageTopicInfoCollection">ShowforumPageTopicInfoCollection</see>.
		/// </summary>
		/// <param name="value">The <see cref="ShowforumPageTopicInfoCollection">ShowforumPageTopicInfoCollection</see> to search for in the collection.</param>
		/// <returns><b>true</b> if the collection contains the specified object; otherwise, <b>false</b>.</returns>
		public bool Contains(ShowforumPageTopicInfo value) 
		{
			return this.List.Contains(value);
		}
Ejemplo n.º 11
0
 public int Add(ShowforumPageTopicInfo value)
 {
     return(this.List.Add(value));
 }
Ejemplo n.º 12
0
 public void Remove(ShowforumPageTopicInfo value)
 {
     List.Remove(value);
 }
Ejemplo n.º 13
0
 public void Insert(int index, ShowforumPageTopicInfo value)
 {
     List.Insert(index, value);
 }
Ejemplo n.º 14
0
 /// <summary>
 /// Gets the index in the collection of the specified <see cref="ShowforumPageTopicInfoCollection">ShowforumPageTopicInfoCollection</see>, if it exists in the collection.
 /// </summary>
 /// <param name="value">The <see cref="ShowforumPageTopicInfoCollection">ShowforumPageTopicInfoCollection</see> to locate in the collection.</param>
 /// <returns>The index in the collection of the specified object, if found; otherwise, -1.</returns>
 public int IndexOf(ShowforumPageTopicInfo value)
 {
     return(this.List.IndexOf(value));
 }
Ejemplo n.º 15
0
 /// <summary>
 /// Gets a value indicating whether the collection contains the specified <see cref="ShowforumPageTopicInfoCollection">ShowforumPageTopicInfoCollection</see>.
 /// </summary>
 /// <param name="value">The <see cref="ShowforumPageTopicInfoCollection">ShowforumPageTopicInfoCollection</see> to search for in the collection.</param>
 /// <returns><b>true</b> if the collection contains the specified object; otherwise, <b>false</b>.</returns>
 public bool Contains(ShowforumPageTopicInfo value)
 {
     return(this.List.Contains(value));
 }