Skip to main content

EmailValidationHelper

A static class in Root.Township, the global namespace.

Static check that an email address is well formed, used by the account UI.

Fields​

MemberWhat it is
const string InvalidEmailErrorMessageMessage shown for a bad address: "Enter a valid email address".
1 private and internal field
MemberWhat it is
private static Logger loggerNLog logger for this class.

Methods​

MemberWhat it is
static bool IsValidEmail(string email)True when MailAddress parses the text to exactly the same address; logs and returns false on a parse error.