Interface IRules
Describes a rule provider.
Inherited Members
Namespace: SpiceSharp.Validation
Assembly: SpiceSharp.dll
Syntax
public interface IRules : IParameterSetCollection, IParameterSet, IEnumerable<IRule>, IEnumerable
Properties
ViolationCount
Gets the number of rule violations.
Declaration
int ViolationCount { get; }
Property Value
Type | Description |
---|---|
int | The number of rule violations. |
Violations
Gets the violated rules.
Declaration
IEnumerable<IRuleViolation> Violations { get; }
Property Value
Type | Description |
---|---|
IEnumerable<IRuleViolation> | The violated rules. |
Methods
GetRules<R>()
Gets all rules of the specified type.
Declaration
IEnumerable<R> GetRules<R>() where R : IRule
Returns
Type | Description |
---|---|
IEnumerable<R> | The rules of the specified type. |
Type Parameters
Name | Description |
---|---|
R | The rule type. |
Reset()
Resets all the rules.
Declaration
void Reset()