Is it possible to define a property in nullable type?
Statically typed default values are ok but it would be useful if we could get nullable types (bool?) directly from properties.
It seems like it is a must if your default handling logic is dynamic.
I ran into this same limitation. Assume Max is a non-required attribute of type double. At runtime, there's no difference between <element Max="0.0"/> and <element />. Both will return 0.0, but obviously a Max of 0.0 has a very different meaning
than not having a Max.
In the auto generated code, you can manually change the type of this property from double to double?, but you'd have to do this any time the code is regenerated. And although I only have two properties in my case, someone with many of these attributes would
have to spend quite a bit of time changing the code. It would be great to have support for nullable types out of the box.