Class RulesetRule
- Namespace
- SunamoRuleset
- Assembly
- SunamoRuleset.dll
Represents a single rule within a ruleset file, with an ID and action.
public class RulesetRule
- Inheritance
-
RulesetRule
- Inherited Members
- Extension Methods
Properties
Action
The action to take for this rule (e.g., None, Warning, Error).
public RulesetActions Action { get; set; }
Property Value
Id
The unique identifier of the rule (e.g., CA1000, CS0168).
public string? Id { get; set; }
Property Value
Methods
Parse(XElement)
Parses rule attributes from an XML element.
public void Parse(XElement node)
Parameters
nodeXElementThe XML element representing the rule.
ToXml()
Converts this rule to its XML string representation.
public string ToXml()
Returns
- string
An XML string representing this rule.