Meinrad Recheis
Meinrad Recheis
@felinepc the solution is very easy. please use a nullable int. The behavior you see is done by the converter. It can not convert "abc" to int but is required...
Btw, if you insist on using `int` instead of `int?` you can replace the converter's GetFunc with something else that may be returns -1 or whatever.
Here's your tryMB fixed: https://try.mudblazor.com/snippet/GkGPEJGipsrdoHgg
Maybe we could make a change. We could not assign the converted value to the value if the converter throws an error. However it is not that easy and would...
Yeah, and maybe a breaking change is not even a big deal in this case. I bet there are not many who rely on this behavior if any. The documentation...
I guess ultimately it would have to be done as a breaking change in v7 with a better converter interface that allows for conversion to fail and report that back...
Or maybe we just add a flag to MudGlobal to opt-out of assigning the default value when the conversion fails. This will be non-breaking since the flag will default to...
I have sheduled the converter redesign for v8. It will be done in a collab by @ScarletKuro and me. Kuro has already formulated some ideas for the new converter interface.
We'll need a `TryConvertTo` overload with return value `bool` and and `out` parameter for the converted value and maybe also an `out` parameter for the error message to be able...
I haven't looked at the source code of ParameterSetUnion at all yet. Just throwing out what first came to my mind when thinking about the problem. A solution would have...