Table of Contents

Constructor RuleSet

Namespace
RuleWright.Core
Assembly
RuleWright.Core.dll

RuleSet(IEnumerable<Rule>, string?, bool)

Creates a rule set.

public RuleSet(IEnumerable<Rule> rules, string? name = null, bool stopAfterFirstMatch = false)

Parameters

rules IEnumerable<Rule>

The rules, in document order.

name string

Optional display name.

stopAfterFirstMatch bool

When true, evaluation stops after the first rule whose condition passes, exactly as StopOnFirstMatch does. This is the set's own semantics rather than the caller's — a first-hit-policy decision table sets it — and the two combine with OR, so a caller can still stop a collect set early but cannot turn a first table into a collecting one.

Exceptions

ArgumentNullException

rules is null or contains null.

ArgumentException

rules is empty or contains duplicate rule ids.