[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...
Discord event: GenAI fundamentals
8 hours ago
No comments:
Post a Comment