C# Class Castle.Components.Validator.NullableDateTimeValidator

This is a meta validator. It is only useful to test a source content before setting it on the target instance.
Inheritance: AbstractValidator
Afficher le fichier Open project: nats/castle-1.0.3-mono

Méthodes publiques

Méthode Description
IsValid ( object instance, object fieldValue ) : bool

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

Method Details

IsValid() public méthode

Checks if the fieldValue can be converted to a valid DateTime. Null or empty value allowed.
public IsValid ( object instance, object fieldValue ) : bool
instance object The target type instance
fieldValue object The property/field value. It can be null.
Résultat bool