INSTRUCTIONS: In C# (Keep it all in the Main CS file)
Problem : Email Checker using String Objects in C#
Create a method that will accept a String as an argument and then check to see if the String follows the pattern of an email address.
You must check the following:
1. Only one @ symbol in the whole string
2. No spaces
3. At least one dot after the @ symbol
4. There is no need to check for .com, .org, etc. 5. The code should work for any string entered.
• User Input (Prompt In Main Method, Use As Arguments): o String of an email address
• Return Value From Custom Function To Main Method: o "valid" or "invalid"
• Result to print to the console in the Main Method:
"The email address of X is a valid email address." or "The email address of X is not a valid email address."