c# - Identify if a string is a number - Stack Overflow

PHOTO EMBED

Thu Dec 08 2022 00:14:51 GMT+0000 (Coordinated Universal Time)

Saved by @Hack3rmAn #cs

int n;
bool isNumeric = int.TryParse("123", out n);
content_copyCOPY

https://stackoverflow.com/questions/894263/identify-if-a-string-is-a-number