C# 클래스 Castle.Components.Validator.NotSameValueValidator

Validates that the content is not set to the specified value
상속: AbstractValidator
파일 보기 프로젝트 열기: nats/castle-1.0.3-mono 1 사용 예제들

공개 메소드들

메소드 설명
IsValid ( object instance, object fieldValue ) : bool

Validates that the fieldValue is not set to the specified value

NotSameValueValidator ( object value )

Initializes a new instance of the SameAsValidator class.

보호된 메소드들

메소드 설명
BuildErrorMessage ( ) : string

Builds the error message.

메소드 상세

BuildErrorMessage() 보호된 메소드

Builds the error message.
protected BuildErrorMessage ( ) : string
리턴 string

IsValid() 공개 메소드

Validates that the fieldValue is not set to the specified value
public IsValid ( object instance, object fieldValue ) : bool
instance object The target type instance
fieldValue object The property/field value. It can be null.
리턴 bool

NotSameValueValidator() 공개 메소드

Initializes a new instance of the SameAsValidator class.
public NotSameValueValidator ( object value )
value object