Method ExactlyOneOf(XElement, string, string)

Assembly: redb.Route.Xml.dll

Enforces the exactly-one-of rule for a pair of attributes (value vs
expr, expr vs predicate). Returns which one is present, or null after
recording the error.

public (string Name, string Value)? ExactlyOneOf(XElement element, string first, string second)