namespace System.Web.ModelBinding { using System.Collections.Generic; public class DictionaryModelBinder : CollectionModelBinder> { protected override bool CreateOrReplaceCollection(ModelBindingExecutionContext modelBindingExecutionContext, ModelBindingContext bindingContext, IList> newCollection) { CollectionModelBinderUtil.CreateOrReplaceDictionary(bindingContext, newCollection, () => new Dictionary()); return true; } } }