C# Class ExpressiveAnnotations.MvcWebSample.Inheritance.CustomRequiredIfAttribute

Inheritance: ExpressiveAnnotations.Attributes.ExpressiveAttribute
Datei anzeigen Open project: jwaliszko/ExpressiveAnnotations

Public Methods

Method Description
CustomRequiredIfAttribute ( string expression ) : System.ComponentModel.DataAnnotations

Protected Methods

Method Description
IsValidInternal ( object value, System.ComponentModel.DataAnnotations.ValidationContext validationContext ) : System.ComponentModel.DataAnnotations.ValidationResult

Method Details

CustomRequiredIfAttribute() public method

public CustomRequiredIfAttribute ( string expression ) : System.ComponentModel.DataAnnotations
expression string
return System.ComponentModel.DataAnnotations

IsValidInternal() protected method

protected IsValidInternal ( object value, System.ComponentModel.DataAnnotations.ValidationContext validationContext ) : System.ComponentModel.DataAnnotations.ValidationResult
value object
validationContext System.ComponentModel.DataAnnotations.ValidationContext
return System.ComponentModel.DataAnnotations.ValidationResult