Modeling a Class with Required Properties and Default Values
how does one model a class that requires all properties when decoding, but may provide default values in the constructor?
say:
where-as b missing while decoding is an error?
Its a major common case for me when newing up objects in code, versus rehydrating them from storage, or receiving them over wire.
say:
where-as b missing while decoding is an error?
Its a major common case for me when newing up objects in code, versus rehydrating them from storage, or receiving them over wire.
