C# Class HermaFx.DataAnnotations.ExtendedValidator

Datei anzeigen Open project: evicertia/HermaFx Class Usage Examples

Public Methods

Method Description
EnsureIsValid ( object obj ) : void

Ensures the object is valid.

EnsureIsValid ( object obj, bool validateAllProperties ) : void

Ensures the object is valid.

IsValid ( object obj ) : bool

Determines whether the specified object passes validation without errors.

IsValid ( object obj, bool validateAllProperties ) : bool

Determines whether the specified object passes validation without errors.

Validate ( object obj ) : IEnumerable

Determines whether the specified object is valid and returns an list of ValidationResults.

Validate ( object obj, bool validateAllProperties ) : IEnumerable

Determines whether the specified object is valid and returns an list of ValidationResults.

Private Methods

Method Description
CreateContextItems ( bool validateAllProperties ) : object>.IDictionary
ShouldValidateAllProperties ( System.ComponentModel.DataAnnotations.ValidationContext context ) : bool
TryGetSeenHashFrom ( System.ComponentModel.DataAnnotations.ValidationContext context ) : HashSet
ValidateClass ( object value, System.ComponentModel.DataAnnotations.ValidationContext context ) : IEnumerable
ValidateProperties ( object value, System.ComponentModel.DataAnnotations.ValidationContext context ) : IEnumerable
ValidateRecursing ( object value, System.ComponentModel.DataAnnotations.ValidationContext context ) : IEnumerable

Method Details

EnsureIsValid() public static method

Ensures the object is valid.
Validation failed
public static EnsureIsValid ( object obj ) : void
obj object The object.
return void

EnsureIsValid() public static method

Ensures the object is valid.
Validation failed
public static EnsureIsValid ( object obj, bool validateAllProperties ) : void
obj object The object.
validateAllProperties bool /// If true, evaluates all the properties, otherwise just checks that /// ones marked with are not null. ///
return void

IsValid() public static method

Determines whether the specified object passes validation without errors.
public static IsValid ( object obj ) : bool
obj object The object.
return bool

IsValid() public static method

Determines whether the specified object passes validation without errors.
public static IsValid ( object obj, bool validateAllProperties ) : bool
obj object The object.
validateAllProperties bool /// If true, evaluates all the properties, otherwise just checks that /// ones marked with are not null. ///
return bool

Validate() public static method

Determines whether the specified object is valid and returns an list of ValidationResults.
public static Validate ( object obj ) : IEnumerable
obj object The object.
return IEnumerable

Validate() public static method

Determines whether the specified object is valid and returns an list of ValidationResults.
public static Validate ( object obj, bool validateAllProperties ) : IEnumerable
obj object The object.
validateAllProperties bool /// If true, evaluates all the properties, otherwise just checks that /// ones marked with are not null. ///
return IEnumerable