DecimalModelBinder

An IModelBinder for Decimal and Nullable`1 where T is Decimal.

Namespace:
Inetdev.AspNetCore.Binders
Type:
Class
Public:
Yes
Protected:
No
Sealed:
No
Abstract:
No
Inherits from:
System.Object
Implements:
Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder

Constructors

DecimalModelBinder

Default constructor

Signature:
public Void DecimalModelBinder()

Methods

BindModelAsync

Binds the model.

Signature:
public Task BindModelAsync(bindingContext)
Parameters
Name Type Summary
bindingContext ModelBindingContext The ModelBindingContext
Exceptions
Type Summary
ArgumentNullException Thrown when bindingContext is null.