Extensions enhancement - HasNumeric() method added

The .HasNumeric() 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 contains numeric values e.g.

" Rocks!".HasNumeric()

will return False whereas:

" Rocks 4 sure!".HasNumeric()

will return True.

For a more detail of what Extensions offer, see:

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

Happy coding

Post a Comment

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