C# Class Bifrost.Validation.Rules.NotNull

Represents the ValueRule for requiring the value to not be null
Inheritance: ValueRule
Afficher le fichier Open project: dolittle/Bifrost

Méthodes publiques

Свойство Type Description
ValueIsNull Bifrost.Rules.BrokenRuleReason

Méthodes publiques

Méthode Description
Evaluate ( IRuleContext context, object instance ) : void
NotNull ( PropertyInfo property ) : System.Reflection

Initializes a new instance of the NotNull rule

Method Details

Evaluate() public méthode

public Evaluate ( IRuleContext context, object instance ) : void
context IRuleContext
instance object
Résultat void

NotNull() public méthode

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

Property Details

ValueIsNull public_oe static_oe property

When a value is null, this is the reason given
public static BrokenRuleReason,Bifrost.Rules ValueIsNull
Résultat Bifrost.Rules.BrokenRuleReason