public override IModelBinder GetBinder(HttpConfiguration configuration, Type modelType) { return(ModelBinderBuilder.CreateGenericModelBinder(modelType, typeof(Dictionary <,>), typeof(MyDictionaryModelBinder <,>))); }
public override IModelBinder GetBinder(HttpConfiguration configuration, Type modelType) { return(ModelBinderBuilder.CreateGenericModelBinder(modelType, typeof(KeyValuePair <,>), typeof(MyKeyValuePairModelBinder <,>))); }
public override IModelBinder GetBinder(HttpConfiguration configuration, Type modelType) { return(ModelBinderBuilder.CreateGenericModelBinder(modelType, typeof(List <>), typeof(MyCollectionModelBinder <>))); }