, :
public bool ValidateEmailAddress (string email)
{
if (string.IsNullOrEmpty (email)) return false;
try
{
MailAddress to = new MailAddress (email);
return true;
}
catch (WhateverException e)
{
return false;
}
}
. , . , 100% , .NET . ( ) , . , - , , .NET. Regex, Regex ( .NET), validaton , .NET, t . , 100% .NET( , ), try/catch, , , - .
user151323