Пример #1
0
 public bool Equals(Card other)
 {
     return(Suit.Equals(other.Suit) && Rank.Equals(other.Rank));
 }
Пример #2
0
 public Card(Suit suit, Rank rank)
 {
     Suit = suit;
     Rank = rank;
 }
Пример #3
0
 public int CompareTo(Card other)
 {
     return(Suit.Equals(other.Suit)
         ? Rank.CompareTo(other.Rank)
         : Suit.CompareTo(other.Suit));
 }