C# Class ValidatorServiceAttribute, code

Inheritance: ValidationAttribute
显示文件 Open project: shendongnian/code

Public Methods

Method Description
ValidatorServiceAttribute ( Type, serviceType )

Protected Methods

Method Description
IsValid ( object value, ValidationContext, validationContext ) : ValidationResult,

Private Methods

Method Description
CreateValidatorService ( ValidationContext, validationContext ) : IModelValidator

Method Details

IsValid() protected method

protected IsValid ( object value, ValidationContext, validationContext ) : ValidationResult,
value object
validationContext ValidationContext,
return ValidationResult,

ValidatorServiceAttribute() public method

public ValidatorServiceAttribute ( Type, serviceType )
serviceType Type,