If I have these strings:
\"abc\" = false
\"abc\"
false
\"123\" = true
\"123\"
true
\"ab2\"
Hope this helps
string myString = "abc"; double num; bool isNumber = double.TryParse(myString , out num); if isNumber { //string is number } else { //string is not a number }