Table of Contents

Method TryParse

Namespace
MailFathom.Application.Discovery.Presentation
Assembly
MailFathom.Application.dll

TryParse(string?, out PresentationBlockType)

Parses an identity read off the wire.

public static bool TryParse(string? identity, out PresentationBlockType blockType)

Parameters

identity string

The identity to parse.

blockType PresentationBlockType

The catalogued type when the identity names one; otherwise the unspecified default.

Returns

bool

true when the identity names a catalogued block type; otherwise false.

Remarks

An identity nothing declares is unknown rather than new, so nothing is reconstructed from it: a client meeting one is meeting a service ahead of it, which is what the block's version and the plan's schema version are for.