Check a string is number or not in C#

Check a string is number or not in C#
[csharp]
double result;
bool isNumeric = double.TryParse(rdr[i].ToString(), out result);
[/csharp]
Here rdr[i].ToString() is my string to be checked .

Kindest Regards
Sibeesh Venu

Leave a Reply

Your email address will not be published. Required fields are marked *

Serverless 360