C# Класс Castle.Components.Validator.DoubleValidator

This is a meta validator. It is only useful to test a source content before setting it on the target instance.
Наследование: AbstractValidator
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
ApplyBrowserValidation ( BrowserValidationConfiguration config, InputElementType inputType, IBrowserValidationGenerator generator, IDictionary attributes, string target ) : void

Applies the browser validation by setting up one or more input rules on IBrowserValidationGenerator.

IsValid ( object instance, object fieldValue ) : bool

Checks if the fieldValue can be converted to a valid Double. Null or empty value are allowed.

Описание методов

ApplyBrowserValidation() публичный Метод

Applies the browser validation by setting up one or more input rules on IBrowserValidationGenerator.
public ApplyBrowserValidation ( BrowserValidationConfiguration config, InputElementType inputType, IBrowserValidationGenerator generator, IDictionary attributes, string target ) : void
config BrowserValidationConfiguration The config.
inputType InputElementType Type of the input.
generator IBrowserValidationGenerator The generator.
attributes IDictionary The attributes.
target string The target.
Результат void

IsValid() публичный Метод

Checks if the fieldValue can be converted to a valid Double. Null or empty value are allowed.
public IsValid ( object instance, object fieldValue ) : bool
instance object The target type instance
fieldValue object The property/field value. It can be null.
Результат bool