C# 클래스 Bifrost.Validation.Rules.NotNull

Represents the ValueRule for requiring the value to not be null
상속: ValueRule
파일 보기 프로젝트 열기: dolittle/Bifrost

공개 프로퍼티들

프로퍼티 타입 설명
ValueIsNull Bifrost.Rules.BrokenRuleReason

공개 메소드들

메소드 설명
Evaluate ( IRuleContext context, object instance ) : void
NotNull ( PropertyInfo property ) : System.Reflection

Initializes a new instance of the NotNull rule

메소드 상세

Evaluate() 공개 메소드

public Evaluate ( IRuleContext context, object instance ) : void
context IRuleContext
instance object
리턴 void

NotNull() 공개 메소드

Initializes a new instance of the NotNull rule
public NotNull ( PropertyInfo property ) : System.Reflection
property System.Reflection.PropertyInfo Property the rule is for
리턴 System.Reflection

프로퍼티 상세

ValueIsNull 공개적으로 정적으로 프로퍼티

When a value is null, this is the reason given
public static BrokenRuleReason,Bifrost.Rules ValueIsNull
리턴 Bifrost.Rules.BrokenRuleReason