/// <summary>
 /// Adds the contents of another <see cref="NoticeinfoCollection">NoticeinfoCollection</see> to the end of the collection.
 /// </summary>
 /// <param name="value">A <see cref="NoticeinfoCollection">NoticeinfoCollection</see> containing the Components to add to the collection. </param>
 public void AddRange(NoticeinfoCollection value)
 {
     for (int i = 0; (i < value.Count); i = (i + 1))
     {
         this.Add((NoticeInfo)value.List[i]);
     }
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="NoticeinfoCollectionEnumerator">NoticeinfoCollectionEnumerator</see> class referencing the specified <see cref="NoticeinfoCollection">NoticeinfoCollection</see> object.
 /// </summary>
 /// <param name="mappings">The <see cref="NoticeinfoCollection">NoticeinfoCollection</see> to enumerate.</param>
 public NoticeinfoCollectionEnumerator(NoticeinfoCollection mappings)
 {
     _temp = ((IEnumerable)(mappings));
     _enumerator = _temp.GetEnumerator();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="NoticeinfoCollection">NoticeinfoCollection</see> class containing the elements of the specified source collection.
 /// </summary>
 /// <param name="value">A <see cref="NoticeinfoCollection">NoticeinfoCollection</see> with which to initialize the collection.</param>
 public NoticeinfoCollection(NoticeinfoCollection value)
 {
     this.AddRange(value);
 }
示例#4
0
 /// <summary>
 /// 获取指定用户的所有通知
 /// </summary>
 /// <param name="uid">用户id</param>
 /// <returns>通知集合</returns>
 private static NoticeinfoCollection NoticeinfoCollectionDTO(IDataReader idatareader)
 {
     NoticeinfoCollection noticeinfocoll = new NoticeinfoCollection();
     while (idatareader.Read())
     {
         noticeinfocoll.Add(LoadSingleNoticeInfo(idatareader));
     }
     idatareader.Close();
     return noticeinfocoll;
 }