Exemple #1
0
 public Card(CardAmount amount)
 {
     Amount = amount;
     Type   = amount.ToType();
 }
Exemple #2
0
 public static CardType ToType(this CardAmount card)
 {
     return(card.Amount >= Constants.AmountCardMax ? CardType.King : CardType.Amount);
 }