Table of Contents

Class FormatHelper

Namespace
SunamoShared.Helpers
Assembly
SunamoShared.dll

Provides methods for formatting email addresses from names and domain postfixes, with diacritic removal.

public class FormatHelper
Inheritance
FormatHelper
Inherited Members
Extension Methods

Properties

ParsedName

Gets or sets the parsed first name from the last FormatEmail call.

public static string? ParsedName { get; set; }

Property Value

string

ParsedSurname

Gets or sets the parsed surname from the last FormatEmail call.

public static string? ParsedSurname { get; set; }

Property Value

string

Methods

FormatEmail(string, string)

Formats an email address from a full name and domain postfix.

public static string FormatEmail(string nameSurname, string postfix)

Parameters

nameSurname string

Full name in "FirstName LastName" format.

postfix string

Email domain postfix.

Returns

string

FormatEmail(string, string, string)

Formats an email address from a first name, surname, and domain postfix.

public static string FormatEmail(string name, string surname, string postfix)

Parameters

name string

First name.

surname string

Last name.

postfix string

Email domain postfix.

Returns

string