[]
        
(Showing Draft Content)

C1.Web.Api.StringModelBinder

StringModelBinder Class

Model binder for return raw string value.

Inheritance
StringModelBinder
Implements
IModelBinder
Namespace: C1.Web.Api
Assembly: C1.Web.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
BindModel(HttpActionContext, ModelBindingContext)

Binds the model to a value by using the specified controller context and binding context.