void AddRule( IRuleIssues newerRuleIssues, IRuleIssues olderRuleIssues )
Parameters
- newerRuleIssues
- The rule and issues to add to IssuesSetDiff.NewerIssuesSet.
- olderRuleIssues
- The rule and issues to add to IssuesSetDiff.OlderIssuesSet.
void AddRule( IRuleIssues newerRuleIssues, IRuleIssues olderRuleIssues )
Exception | Description |
---|---|
System.ArgumentException | Thrown if IssuesSetDiff.NewerIssuesSet already contains the newerRuleIssues.IRuleIssues.Rule
or if IssuesSetDiff.OlderIssuesSet already contains the olderRuleIssues.IRuleIssues.Rule. Also thrown if an issue of newerRuleIssues.IRuleIssues.Issues have a CodeElement that doesn't belong to IssuesSetDiff.NewerIssuesSet.CodeBase or if an issue of olderRuleIssues.IRuleIssues.Issues have a CodeElement that doesn't belong to IssuesSetDiff.OlderIssuesSet.CodeBase. |
Target Platforms: Windows 11, 10, 8, 7 and Linux, MacOS with net8.0, net7.0 or net6.0 installed