Method TryCreate
- Namespace
- MailFathom.Domain.Mutations
- Assembly
- MailFathom.Domain.dll
TryCreate(IEnumerable<string>, out AuthoredMailKeywords)
Reads the keyword set one authored change names, without raising over a value somebody mistyped.
public static bool TryCreate(IEnumerable<string> keywords, out AuthoredMailKeywords authored)
Parameters
keywordsIEnumerable<string>The keywords as they were written, in any order.
authoredAuthoredMailKeywordsThe set when every keyword is one a
STOREmay name; otherwise None.
Returns
Remarks
This is what configuration reads through, so that an unusable keyword is reported against the key an operator edits rather than raised out of the reading. Two keywords differing only in case are one keyword, and the first spelling written is the one kept — an arbitrary choice between two spellings of the same thing, made deterministically so that a rule set's derived revision does not move because a list was reordered.
Exceptions
- ArgumentNullException
Thrown when
keywordsis null.