public override IModelBinder GetBinder(HttpConfiguration configuration, Type modelType)
 {
     return(ModelBinderBuilder.CreateGenericModelBinder(modelType, typeof(Dictionary <,>), typeof(MyDictionaryModelBinder <,>)));
 }
Esempio n. 2
0
 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 <>)));
 }