示例#1
0
文件: CreditCard.cs 项目: stalla/NAAE
        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;
 }