[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...
AI's hidden state in the execution stack
1 day ago
No comments:
Post a Comment