This repository has been archived by the owner on Dec 14, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
ArgumentNullException when using [BindProperty] on a private property #6400
Comments
I don't think this has anything to do with |
but yes, this is bug |
So what I'm planning to do here is add error checking and explain that you should not try to use tag helpers with private properties. We don't support private properties for model binding (they are ignored) so using them for tag helpers won't really have the desired effect. |
rynowak
added a commit
that referenced
this issue
Jun 26, 2017
If you give ModelExpressionProvider a lambda with a private property you'll end up here. This wasn't common before, but it seems like users are more likely to try it with pages. Model Metadata and Model Binding don't handle private properties, so supporting it in Model Expressions seems less than useful. This isn't a breaking change because this case would have resulted in a null-ref. Addresses #6400
rynowak
added a commit
that referenced
this issue
Jul 2, 2017
If you give ModelExpressionProvider a lambda with a private property you'll end up here. This wasn't common before, but it seems like users are more likely to try it with pages. Model Metadata and Model Binding don't handle private properties, so supporting it in Model Expressions seems less than useful. This isn't a breaking change because this case would have resulted in a null-ref. Addresses #6400
rynowak
added a commit
that referenced
this issue
Jul 4, 2017
If you give ModelExpressionProvider a lambda with a private property you'll end up here. This wasn't common before, but it seems like users are more likely to try it with pages. Model Metadata and Model Binding don't handle private properties, so supporting it in Model Expressions seems less than useful. This isn't a breaking change because this case would have resulted in a null-ref. Addresses #6400
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
This is not supported, but the result shouldn't be an exception with this trace:
The text was updated successfully, but these errors were encountered: