Пример #1
0
        public static CreditCard Create(CreditCardType type, string number, string owner, ExpiryDate expiration)
        {
            var card = new CreditCard {
                Type = type, Owner = owner, Number = number, Expires = expiration
            };

            return(card);
        }
Пример #2
0
 public static CreditCard Create(CreditCardType type, string number, string owner, ExpiryDate expiration)
 {
     var card = new CreditCard {Type = type, Owner = owner, Number = number, Expires = expiration};
     return card;
 }