[]
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 |
|---|---|
| BindModelAsync(ModelBindingContext) | Binds the model to a value by using the binding context. |