[]
Model binder for return raw string value.
public class StringModelBinder : IModelBinder
For the default model binder, the empty string will be converted to null. This model binder will keep the raw string value, including empty string.
| Name | Description |
|---|---|
| StringModelBinder() |
| Name | Description |
|---|---|
| BindModel(HttpActionContext, ModelBindingContext) | Binds the model to a value by using the specified controller context and binding context. |