Share via


FloatModelBinder Class

Definition

An IModelBinder for Single and Nullable<T> where T is Single.

public ref class FloatModelBinder : Microsoft::AspNetCore::Mvc::ModelBinding::IModelBinder
public class FloatModelBinder : Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder
type FloatModelBinder = class
    interface IModelBinder
Public Class FloatModelBinder
Implements IModelBinder
Inheritance
FloatModelBinder
Implements

Constructors

FloatModelBinder(NumberStyles, ILoggerFactory)

Initializes a new instance of FloatModelBinder.

FloatModelBinder(NumberStyles)
Obsolete.

This constructor is obsolete and will be removed in a future version. The recommended alternative is the overload that also takes an ILoggerFactory.

Initializes a new instance of FloatModelBinder.

Methods

BindModelAsync(ModelBindingContext)

Attempts to bind a model.

Applies to