Validate a Email id using C#

We always get requests to write a tip/tutorial on validating an email id using c#. Its actually quite simple and can be done by using the following code snippets. isValidEmail takes a string inputEmail and returns true if the string is a valid email id. Basically it uses an instance of Regex class to check the string against the regular expression for a email id.

If you need more help then have a look at this article to see how it can be used elegantly.

Vivek Maskara

I am pursuing BTech in Software Engineering from Delhi Technological University. I develop apps, create websites and blog about my app experiences.

Read more:
How to create your first Windows Phone app
How to change the App name and Tile name of your Windows phone app
Data binding in Windows Phone app – One way binding