Check out example codes for "check if string is email c#". It will help you in understanding the concepts better.

Code Example 1

bool IsValidEmail(string email)
{
    try {
        var addr = new System.Net.Mail.MailAddress(email);
        return addr.Address == email;
    }
    catch {
        return false;
    }
}

Learn ReactJs, React Native from akashmittal.com