Class TypeConverterModelBinderProvider
- Namespace
- System.Web.Http.ModelBinding.Binders
- Assembly
- System.Web.Http.dll
Provides a model binder for a model that requires type conversion.
public sealed class TypeConverterModelBinderProvider : ModelBinderProvider
- Inheritance
-
TypeConverterModelBinderProvider
- Inherited Members
Constructors
TypeConverterModelBinderProvider()
Initializes a new instance of the TypeConverterModelBinderProvider class.
public TypeConverterModelBinderProvider()
Methods
GetBinder(HttpConfiguration, Type)
Retrieve a model binder for a model that requires type conversion.
public override IModelBinder GetBinder(HttpConfiguration configuration, Type modelType)
Parameters
configuration
HttpConfigurationThe configuration of the binder.
modelType
TypeThe type of the model.
Returns
- IModelBinder
The model binder, or Nothing if the type cannot be converted or there is no value to convert.