コード例 #1
0
 public NewsItemComparer(NewsItemSortField sortField) : this(false, sortField)
 {
 }
コード例 #2
0
 public NewsItemComparer(bool sortDescending, NewsItemSortField sortField)
 {
     this.sortField      = sortField;
     this.sortDescending = sortDescending;
 }
コード例 #3
0
 /// <summary>
 /// Returns a NewsItem comparer.
 /// </summary>
 /// <param name="sortDescending">Set to False, if it should sort ascending,
 /// else true</param>
 /// <param name="sortField">indicates which field on the NewsItem object should be used for
 /// sorting</param>
 /// <returns></returns>
 static public IComparer <INewsItem> GetComparer(bool sortDescending, NewsItemSortField sortField)
 {
     return(new NewsItemComparer(sortDescending, sortField));
 }