I am having an string like this
string str = \"dfdsfdsf8fdfdfd9dfdfd4\"
I need to check whether the string contains number by looping through the array.
If you're going to loop through the string, DON'T use int.TryParse... that's way too heavy. Instead, use char.IsNumber();
example:
foreach (char c in myString) if (char.IsNumber(c)) return true;