Update GenericModelBinder.BindModel to use correct overload of

Activator.CreateInstance
This commit is contained in:
Pranav K 2014-03-18 11:39:12 -07:00
parent 3a0add8be8
commit eae9d3a951
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ namespace Microsoft.AspNet.Mvc.ModelBinding
Type binderType = ResolveBinderType(bindingContext.ModelType);
if (binderType != null)
{
var binder = _activator.CreateInstance<IModelBinder>();
var binder = (IModelBinder)_activator.CreateInstance(binderType);
return binder.BindModel(bindingContext);
}