Closed tidyui closed 2 years ago
I've created a test repository here https://github.com/tidyui/BlazorBindingTest that shows the three scenarios:
/fieldfails
/fieldworks
/fieldbyinterface
@SteveSandersonMS This seems to happen pretty deep in how parameters get handled.
Closing this as a dupe of https://github.com/dotnet/aspnetcore/issues/18042
Consider the following code:
I have a component for rendering a
StringField
in the UI that simplified looks like this:In my main page I operate on a collection of
IField
objects. Trying to invoke the component like this fails as runtime. This has worked fine for all previous components that didn't have the implicit operator.However changing the component to this and passing the param as an
IField
works just fine but is a bit messy.It looks like the implicit operator converts the param before trying to set it in runtime making the app break.