/// <summary>
 /// Initializes a new instance of the <see cref="NumberBinderProvider"/> class.
 /// </summary>
 /// <param name="errorMessageProvider">Error message provider based on model name.</param>
 public NumberBinderProvider(Func <string, string>?errorMessageProvider = null)
 {
     DoubleBinder  = new DoubleBinder(errorMessageProvider);
     DecimalBinder = new DecimalBinder(errorMessageProvider);
     FloatBinder   = new FloatBinder(errorMessageProvider);
 }
 public NumberBinderProvider(MvcOptions options)
 {
     DoubleBinder  = new DoubleBinder(options);
     DecimalBinder = new DecimalBinder(options);
     FloatBinder   = new FloatBinder(options);
 }