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 has been archived by the owner on Dec 14, 2018. It is now read-only.
The BinderType setter throws when the type is not an IModelBinder. This is problematic since reflecting over the type decorated with the attribute would produce an exception. We already throw from the code consuming the attribute, which should suffice.
https://github.com/aspnet/Mvc/blob/dev/src/Microsoft.AspNet.Mvc.ModelBinding/BinderMetadata/ModelBinderAttribute.cs#L34-L57
The
BinderType
setter throws when the type is not anIModelBinder
. This is problematic since reflecting over the type decorated with the attribute would produce an exception. We already throw from the code consuming the attribute, which should suffice.Example:
The text was updated successfully, but these errors were encountered: