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.
"blog.cjvandyk.com Rocks!".HasNumeric()
will return False whereas:
"blog.cjvandyk.com Rocks 4 sure!".HasNumeric()
will return True.
For a more detail of what Extensions offer, see:
README page on GitHub - https://github.com/cjvandyk/Quix/blob/master/Extensions/README.md
NuGet as Extensions.cs - https://www.nuget.org/packages/Extensions.cs/2.0.1
GitHub Source - https://github.com/cjvandyk/Quix/blob/master/Extensions
Suggestions and bugs - https://github.com/cjvandyk/Quix/discussions
Add Extensions to your toolbox and make your coding life a little easier.
Happy coding
C
No comments:
Post a Comment
Comments are moderated only for the purpose of keeping pesky spammers at bay.