Class VariablePresenceRuleViolation
An IRuleViolation for a VariablePresenceRule.
Implements
Inherited Members
Namespace: SpiceSharp.Validation
Assembly: SpiceSharp.dll
Syntax
public class VariablePresenceRuleViolation : IRuleViolation
Constructors
VariablePresenceRuleViolation(IRule, IVariable)
Initializes a new instance of the VariablePresenceRuleViolation class.
Declaration
public VariablePresenceRuleViolation(IRule rule, IVariable variable)
Parameters
Type | Name | Description |
---|---|---|
IRule | rule | The rule. |
IVariable | variable | The variable. |
Properties
Rule
Gets the rule that was violated.
Declaration
public IRule Rule { get; }
Property Value
Type | Description |
---|---|
IRule | The violated rule. |
Subject
Gets the subject that caused the rule violation (if any).
Declaration
public IRuleSubject Subject { get; }
Property Value
Type | Description |
---|---|
IRuleSubject | The subject that caused the violation. |
Variable
Gets the variable that needed to be found.
Declaration
public IVariable Variable { get; }
Property Value
Type | Description |
---|---|
IVariable | The searched variable. |