Update GenericModelBinder.BindModel to use correct overload of
Activator.CreateInstance
This commit is contained in:
parent
3a0add8be8
commit
eae9d3a951
|
|
@ -21,7 +21,7 @@ namespace Microsoft.AspNet.Mvc.ModelBinding
|
||||||
Type binderType = ResolveBinderType(bindingContext.ModelType);
|
Type binderType = ResolveBinderType(bindingContext.ModelType);
|
||||||
if (binderType != null)
|
if (binderType != null)
|
||||||
{
|
{
|
||||||
var binder = _activator.CreateInstance<IModelBinder>();
|
var binder = (IModelBinder)_activator.CreateInstance(binderType);
|
||||||
return binder.BindModel(bindingContext);
|
return binder.BindModel(bindingContext);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue