mvc6 custom model binder not firing
问题 I'm trying to figure out model binding in current mvc6 (visual studio 2015 release candidate). This is what my code looks like so far: public class MyObjectModelBinder : IModelBinder { public Task<ModelBindingResult> BindModelAsync(ModelBindingContext bindingContext) { if (bindingContext.ModelType == typeof(MyObject)) { var model = new MyObject(); return Task.FromResult(new ModelBindingResult(model, bindingContext.ModelName, true)); } return Task.FromResult<ModelBindingResult>(null); } } The