Method TryParse
- Namespace
- MailFathom.Application.EmailContent.Rendering.Document
- Assembly
- MailFathom.Application.dll
TryParse(string?, out MailDocumentColour)
Parses the #rrggbb notation the wire uses.
public static bool TryParse(string? notation, out MailDocumentColour colour)
Parameters
notationstringThe notation to parse.
colourMailDocumentColourThe colour when the notation is one this contract writes; otherwise the default.
Returns
Remarks
Only the one notation this contract writes is accepted, rather than every notation CSS admits. What a message wrote was already resolved when the document was reduced, so anything else arriving here is a document this deployment did not produce.