You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 14, 2018. It is now read-only.
Of the IBindingSourceValueProvider implementations in MVC, all but CompositeValueProvider have a Filter() method that returns null when the requested BindingSource does not match. CompositeValueProvider instead returns an empty CompositeValueProvider.
Also have a little code in CompositeModelBinder and MutableObjectModelBinder that expects the CompositeValueProvider behaviour of all IBindingSourceValueProvider impelmentations. That is, they need to change slightly to handle the expected / contracted null return values from Filter().
The text was updated successfully, but these errors were encountered:
…vider` contract
- #2907
- return `null` if `Filter()` finds no matching value provider in collection
- fix lack of defensiveness in model binders' use of `IBindingSourceValueProvider` implementations
- remove test workaround for unusual `CompositeValueProvider` behaviour
…vider` contract
- #2907
- return `null` if `Filter()` finds no matching value provider in collection
- fix lack of defensiveness in model binders' use of `IBindingSourceValueProvider` implementations
- remove test workaround for unusual `CompositeValueProvider` behaviour
Of the
IBindingSourceValueProvider
implementations in MVC, all butCompositeValueProvider
have aFilter()
method that returnsnull
when the requestedBindingSource
does not match.CompositeValueProvider
instead returns an emptyCompositeValueProvider
.Also have a little code in
CompositeModelBinder
andMutableObjectModelBinder
that expects theCompositeValueProvider
behaviour of allIBindingSourceValueProvider
impelmentations. That is, they need to change slightly to handle the expected / contractednull
return values fromFilter()
.The text was updated successfully, but these errors were encountered: