C# Class ExpressiveAnnotations.MvcWebSample.Inheritance.CustomAssertThatAttribute

Inheritance: ExpressiveAnnotations.Attributes.ExpressiveAttribute
Afficher le fichier Open project: jwaliszko/ExpressiveAnnotations

Méthodes publiques

Méthode Description
CustomAssertThatAttribute ( string expression ) : System
FormatErrorMessage ( string displayName, string expression, Type objectType, Guid>.IDictionary &fieldsMap ) : string
FormatErrorMessage ( string displayName, string expression, object objectInstance ) : string

Méthodes protégées

Méthode Description
IsValidInternal ( object value, System.ComponentModel.DataAnnotations.ValidationContext validationContext ) : System.ComponentModel.DataAnnotations.ValidationResult

Method Details

CustomAssertThatAttribute() public méthode

public CustomAssertThatAttribute ( string expression ) : System
expression string
Résultat System

FormatErrorMessage() public méthode

public FormatErrorMessage ( string displayName, string expression, Type objectType, Guid>.IDictionary &fieldsMap ) : string
displayName string
expression string
objectType System.Type
fieldsMap Guid>.IDictionary
Résultat string

FormatErrorMessage() public méthode

public FormatErrorMessage ( string displayName, string expression, object objectInstance ) : string
displayName string
expression string
objectInstance object
Résultat string

IsValidInternal() protected méthode

protected IsValidInternal ( object value, System.ComponentModel.DataAnnotations.ValidationContext validationContext ) : System.ComponentModel.DataAnnotations.ValidationResult
value object
validationContext System.ComponentModel.DataAnnotations.ValidationContext
Résultat System.ComponentModel.DataAnnotations.ValidationResult