Table of Contents

Method TryCreate

Namespace
MailFathom.Application.Calendar.Extraction
Assembly
MailFathom.Application.dll

TryCreate(string?, DateTimeOffset, out CalendarEventDescription?)

Reads a description, refusing one that is blank or longer than a sentence.

public static bool TryCreate(string? text, DateTimeOffset writtenAt, out CalendarEventDescription? description)

Parameters

text string

The sentence as supplied.

writtenAt DateTimeOffset

The instant the person typed it at, with their own offset.

description CalendarEventDescription

The description, when it is one.

Returns

bool

true when text is a description.