Advertisement
Guest User

Untitled

a guest
Feb 26th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. public int CompareTo(object obj)
  2. {
  3. var category = (Category)obj;
  4. if (productName == category.productName)
  5. {
  6. if (messageType == category.messageType)
  7. return messageTopic.CompareTo(category.messageTopic);
  8. return messageType.CompareTo(category.messageType);
  9. }
  10. return productName.CompareTo(category.productName);
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement