-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Can we prune conversion code in ModelBindingHelper #4521
Comments
FYI the "needed scenarios" in HTML helpers include pretty much any conversion imaginable. The issue is that that conversion source is not just |
Looks like we should take a hatchet to |
What will improve as I duplicate the type conversion code across the existing call sites? |
I think the idea is that we would be deleting ~200 lines of bad code and instead we could have a simple helper method that has like 10 lines of code and was called from a few places. The code in ModelBindingHelper is way too complicated for the few things we actually need it to do. |
/cc @Eilon @danroth27 not sure this is urgent enough to do in 1.0.0. |
Moved. |
Unfortunately I was incorrect in that assessment and we're now locked into at least supporting More generally, the
My leaning is toward removing unused
|
/cc @Eilon |
- remove extra argument checks - remove two test-only `ConvertTo()` overloads - this relates to #4521
- remove extra argument checks - remove two test-only `ConvertTo()` overloads - this relates to #4521
Removed unused |
These ConvertTo methods in
ModelBindingHelper
aren't used by model binding anymore and they are likely way too general for the use cases we have in HTML helpers. Can we get rid of it and make HTML helpers using something that only supports the needed scenarios?The text was updated successfully, but these errors were encountered: