My proposal is to add a boolean switch on the [StronglyTypedId] attribute that would indicate if the generator should generate the default constructor that accepts the BackingType value.
That way someone could provide his own custom constructor that accepts the BackingType and allow for further customisation of the final Value property.
I found myself in need of this actually only on the string type so far since I wanted to do some extra work to some ids.
If this sounds okay with you I would love to sit and try to implement it myself when I have some time 😸
My proposal is to add a boolean switch on the
[StronglyTypedId]attribute that would indicate if the generator should generate the default constructor that accepts theBackingTypevalue.That way someone could provide his own custom constructor that accepts the
BackingTypeand allow for further customisation of the finalValueproperty.I found myself in need of this actually only on the
stringtype so far since I wanted to do some extra work to some ids.If this sounds okay with you I would love to sit and try to implement it myself when I have some time 😸