RSS

Extensions enhancement - IsZipCode() method added


The .IsZipCode() method was added to both the System.String and System.Text.StringBuilder objects.  It allows the developer the ability to quickly check if a string is in valid US zip code format e.g.

"12345".IsZipCode()

will return True as will

"12345-6789".IsZipCode()

but this

"12345678".IsZipCode()

Will return False.


For a more detail of what Extensions offer, see:







Add Extensions to your toolbox and make your coding life a little easier.  

Happy coding
C

Post a Comment

Comments are moderated only for the purpose of keeping pesky spammers at bay.