[]
        
(Showing Draft Content)

C1.Web.Api.StringModelBinder

StringModelBinder Class

Model binder for return raw string value.

Inheritance
StringModelBinder
Implements
Namespace: C1.Web.Api
Assembly: C1.AspNetCore.Api.dll
Syntax
public class StringModelBinder : IModelBinder
Remarks

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.

Constructors

Name Description
StringModelBinder()

Methods

Name Description
BindModelAsync(ModelBindingContext)

Binds the model to a value by using the binding context.