Esempio n. 1
0
 /// <summary>
 /// Compares 2 instances of Category.
 /// </summary>
 public static int CompareByModifiedUtc(Category category1, Category category2)
 {
     return category1.ModifiedUtc.CompareTo(category2.ModifiedUtc);
 }
Esempio n. 2
0
 /// <summary>
 /// Compares 2 instances of Category.
 /// </summary>
 public static int CompareByItemCount(Category category1, Category category2)
 {
     return category1.ItemCount.CompareTo(category2.ItemCount);
 }
Esempio n. 3
0
 /// <summary>
 /// Compares 2 instances of Category.
 /// </summary>
 public static int CompareByCreatedUtc(Category category1, Category category2)
 {
     return category1.CreatedUtc.CompareTo(category2.CreatedUtc);
 }
Esempio n. 4
0
 /// <summary>
 /// Compares 2 instances of Category.
 /// </summary>
 public static int CompareByDescription(Category category1, Category category2)
 {
     return category1.Description.CompareTo(category2.Description);
 }
Esempio n. 5
0
 /// <summary>
 /// Compares 2 instances of Category.
 /// </summary>
 public static int CompareByCategory(Category category1, Category category2)
 {
     return category1.CategoryText.CompareTo(category2.CategoryText);
 }