Table of Contents

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

keywords IEnumerable<string>

The keywords as they were written, in any order.

authored AuthoredMailKeywords

The set when every keyword is one a STORE may name; otherwise None.

Returns

bool

true when the set was read.

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 keywords is null.