Method TryParseName
- Namespace
- MailFathom.Application.Rules.Facts
- Assembly
- MailFathom.Application.dll
TryParseName(string?, out MailRuleFact)
Resolves the fact an expression identifier names, matching case exactly.
public static bool TryParseName(string? name, out MailRuleFact fact)
Parameters
namestringThe identifier written in a condition.
factMailRuleFactThe declared fact when the name is one; otherwise the unspecified default.
Returns
Remarks
Case is significant, unlike the SASL names elsewhere in this repository. A fact name is written in a condition
beside operators and literals, so accepting SENDERDOMAIN as well as senderDomain would leave the
documented surface and the accepted surface saying different things, and a rule set would stop reading uniformly
the moment two people wrote it differently.