IsNumeric Best Practices
Posted: Thursday, October 30, 2003 11:45 AM
by
bruce
Filed under: Not-so-SOAP
Needing to find out what the best why to implement the IsNumeric function in C# is, I went on a brief tour of the Internet today. My result is a very informative
article by J. Ambrose Little that benchmarks six (count 'em, six) different techniques. The result is a virtual tie between an incremental character technique (use the Char.IsNumeric method on each character in a string), the Double.TryParse and VisualBasic.IsNumeric. Useful information to keep in mind in the future.
If you would like to receive an email when updates are made to this post, please register here