MVC 2 UpdateModel on Interface, Should ModelBinderAttribute be ignored?
问题 I have forms posting data from instances of a particular abstract class: public abstract class IRestriction { public string Name {get; set;} public abstract IModelBinder GetBinder(); } The concrete type and PartialView are determined at runtime: IRestriction restriction = (IRestriction)Activator.CreateInstance(Type.GetType(restriction.restriction_class)); The appropriate partial view is then rendered correctly. When the form is sent back the type is inferred correctly and activated the same