Ant <An*@discussions.microsoft.com> wrote:
Hi, I'm wondering how you can check a string that supposed to represent a
numeric value.
e.g. in old VB6 there was a method IsNumeric().
Is there an equivelant in C#?
Not really - you basically have to try to parse the string as a number
(eg using Double.TryParse).
If you really want to, you can add a reference to the
Microsoft.VisualBasic assembly, and use
Microsoft.VisualBasic.Information.IsNumeric().
--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too