Vogen icon indicating copy to clipboard operation
Vogen copied to clipboard

IConvertible Support

Open StealthyDeveloper opened this issue 8 months ago • 1 comments

Describe the feature

Currently the generated code for the ValueObjects doesn't include a implementation of the IConvertible interface, meaning the Convert.XXX methods will throw an exception when dynamically converting value objects to their underlying type based on System.Type and back again. Seeing as there's already IParsable, IFormattable support IConvertible would be a logical extension.

A workaround does exist by using the typeconverter from Conversions.TypeConverter.

StealthyDeveloper avatar Apr 16 '25 16:04 StealthyDeveloper

Thank you for the feedback - that sounds like a very worthy addition. I'll definitely add this when time permits.

stevedunn-marex avatar Apr 17 '25 07:04 stevedunn-marex