[CreditCardNumber]
public readonly string CreditCard;
Two things to quickly point out:
1. Works on readonly attributes (big thing where defining immutable types where attributes are only set vai ctor)
2. [CreditCardNumber] validation performs luhn check! - didnt expect that...
Monday, May 11, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment