static void Main(string[] args)
        {
            while (true)
            {
                Console.WriteLine("Enter an email address or press [ENTER] to quit...");
                string emailAddress = Console.ReadLine();

                if (string.IsNullOrEmpty(emailAddress))
                    return;

                var svc = new EmailValidatorClient();
                bool result = svc.ValidateAddress(emailAddress);

                Console.WriteLine("Email address is valid : {0}", result);
            }
        }
Beispiel #2
0
 static void Main(string[] args)
 {
     EmailValidatorClient svc = new EmailValidatorClient();
     bool result = svc.ValidateAddress("*****@*****.**");
 }