ComplianceRule
public abstract class ComplianceRuleA compliance rule: checks one rendered ComplianceLabel and reports findings. Derive from it, or use ComplianceRule.Create with a delegate, to write custom rules; put them into a ComplianceRulePack.
Properties
| Property | Type | Description |
|---|---|---|
Info { get; } | ComplianceRuleInfo | Stable id, title, citation and default severity. |
Methods
| Method Signature | Returns | Description |
|---|---|---|
# Check(ComplianceLabel label, ComplianceReporter report) | void | Checks one label; report problems through report. |
static # Create(ComplianceRuleInfo info, Action<ComplianceLabel, ComplianceReporter> check) | ComplianceRule | A rule from a delegate. |
# ToString() | string |

