Class Alternation
A set of mutually exclusive alternatives: A | B | C.
This is the top-level content of every Rule.
public record Alternation : RuleContent, IEquatable<RuleContent>, IEquatable<Alternation>
- Inheritance
-
Alternation
- Implements
- Inherited Members
- Extension Methods
Constructors
Alternation(IReadOnlyList<Alternative>)
A set of mutually exclusive alternatives: A | B | C.
This is the top-level content of every Rule.
public Alternation(IReadOnlyList<Alternative> Alternatives)
Parameters
AlternativesIReadOnlyList<Alternative>
Properties
Alternatives
Gets the immutable ordered snapshot of alternatives.
public IReadOnlyList<Alternative> Alternatives { get; init; }