示例#1
0
文件: ChatEntry.cs 项目: Vrsi/FIT
        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;
        }
示例#2
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);
        }