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