Table of Contents

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

notation string

The notation to parse.

colour MailDocumentColour

The colour when the notation is one this contract writes; otherwise the default.

Returns

bool

true when the notation was read; otherwise false.

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.