Exemple #1
0
        static void Main2(string[] args)
        {
            //ICompareble //比较功能
            Npc npc1 = new Npc(15);
            Npc npc2 = new Npc(50);
            Npc npc3 = new Npc(15);
            //
            int a = npc1.CompareTo(npc2);

            Console.WriteLine(a);
        }