If I have these strings:
-
"abc"=false -
"123"=true -
"ab2"=false
Is there a command, like IsNumeric() or something else, that can identify if a string is a valid number?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Update As of C# 7:
or if you don’t need the number you can discard the out parameter
The var s can be replaced by their respective types!