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
textstringThe sentence as supplied.
writtenAtDateTimeOffsetThe instant the person typed it at, with their own offset.
descriptionCalendarEventDescriptionThe description, when it is one.