Пример #1
0
        public static bool operator <=(Card card1, Card card2)
        {
            switch (CardsComparerHelper.Compare(card1, card2))
            {
            case 0:
            case -1:
                return(true);

            case 1:
            default:
                return(false);
            }
        }
Пример #2
0
 public int Compare(Card card1, Card card2)
 {
     // воспользуемся хелпером
     return(CardsComparerHelper.Compare(card1, card2));
 }