Show / Hide Table of Contents

Class VariablePresenceRuleViolation

An IRuleViolation for a VariablePresenceRule.

Inheritance
object
VariablePresenceRuleViolation
Implements
IRuleViolation
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
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.

Implements

IRuleViolation

Extension Methods

Utility.ThrowIfNull<T>(T, string)

See Also

IRuleViolation
In this article
Back to top Generated by DocFX