Table of Contents

Method Create

Namespace
MailFathom.Domain.Contacts
Assembly
MailFathom.Domain.dll

Create(string)

Creates a contact name from text an owner supplied.

public static ContactDisplayName Create(string value)

Parameters

value string

The name to record.

Returns

ContactDisplayName

A validated name, trimmed and otherwise as written.

Remarks

Characters carrying no glyph of their own are refused because the value is published in every answer that names the contact: a newline in it would let one record write arbitrary lines into a listing of the others, and a bidirectional override would let one render as a name it does not contain. MailFathom.Domain.Contacts.ContactText holds which characters those are and why two of them are admitted.

Exceptions

ArgumentException

Thrown when value is blank, longer than MaximumLength, or carries a character that does not render as part of the name.