Does anybody know how I can create a data type in VB.Net.
I want to be able to create a data type called "EmailAddress" and then assign it as such:
Once, declared I want to be able to use it just as I would a string or integer data type:
The data type would validate the email and set it assuming the syntax was correct. As pretty much everything in .Net is an object anyway I thought this might be possible?
I want to be able to create a data type called "EmailAddress" and then assign it as such:
VB.NET:
dim Email as EmailAddress
VB.NET:
Email = "[email="mike@someplace.com"]mike@someplace.com[/email]"