Beispiel #1
0
 static void Main(string[] args)
 {
     emailExample = new EmailExample();
     foreach (var email in validEmail)
     {
         bool isvalid = emailExample.Validate(email);
         Console.WriteLine("Email is " + email + " is valid: " + isvalid);
     }
     foreach (var email in invalidEmail)
     {
         bool isvalid = emailExample.Validate(email);
         Console.WriteLine("Email is " + email + " is valid: " + isvalid);
     }
 }
Beispiel #2
0
 static void Main(string[] args)
 {
     emailExample = new EmailExample();
     foreach (var email in validEmail)
     {
         bool isValid = emailExample.Validate(email);
         Console.WriteLine($"Email {email} is valid : {isValid}");
     }
     foreach (var email in invalidEmail)
     {
         bool isValid = emailExample.Validate(email);
         Console.WriteLine($"Email {email} is valid : {isValid}");
     }
 }
Beispiel #3
0
        static void Main(string[] args)
        {
            EmailExample validateEmail = new EmailExample();

            Console.WriteLine(validateEmail.Validate("[email protected]"));
        }