Table of Contents

Method TryCreate

Namespace
MailFathom.Domain.Calendar
Assembly
MailFathom.Domain.dll

TryCreate(string?, out CalendarEventTitle)

Reads a title, refusing one that is blank, too long, or carrying a character that renders as nothing.

public static bool TryCreate(string? value, out CalendarEventTitle title)

Parameters

value string

The title as supplied.

title CalendarEventTitle

The title, when it is one.

Returns

bool

true when value is a title.

Remarks

MailFathom.Domain.Calendar.CalendarText holds which characters those are, and why the text is walked as Unicode scalars rather than as UTF-16 code units.