public static int Comparison(ChatEntry a, ChatEntry b) { if (Convert.ToInt64(a.ID) > Convert.ToInt64(b.ID)) return -1; else if (Convert.ToInt64(a.ID) == Convert.ToInt64(b.ID)) return 0; else if (Convert.ToInt64(a.ID) < Convert.ToInt64(b.ID)) return 1; return 0; }
public static int Comparison(ChatEntry a, ChatEntry b) { if (Convert.ToInt64(a.ID) > Convert.ToInt64(b.ID)) { return(-1); } else if (Convert.ToInt64(a.ID) == Convert.ToInt64(b.ID)) { return(0); } else if (Convert.ToInt64(a.ID) < Convert.ToInt64(b.ID)) { return(1); } return(0); }