Class TrimStringModelBinderProvider
Automatically trims whitespace from String values that are bound by this Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinderProvider.
Apply the NoTrimAttribute attribute to properties to exclude them from being bound by this provider.
The model binder is activated by inserting a TrimStringModelBinderProvider instance into the ASP.NET MVC model binder providers list.
Implements
Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinderProvider
Namespace: XploRe.AspNetCore.Mvc.ModelBinding
Assembly: XploRe.AspNetCore.Mvc.dll
Syntax
public class TrimStringModelBinderProvider : Object, IModelBinderProvider
Constructors
Name | Description |
---|---|
TrimStringModelBinderProvider() |
Methods
Name | Description |
---|---|
GetBinder(ModelBinderProviderContext) |