C# Validation: Checking If a String Is a Number

preview_player
Показать описание
C# Validation: Checking If a String Is a Number

Greetings, I am here with another C# tutorial and in this video we shall be covering how to check if a string is a number, we check for an integer in this tutorial but this can easily be adapted to include floats. This validation is handy for validating an age, phone number or any other input where you only want a number.

C# Validation: Checking If a String Is a Number
Рекомендации по теме
Комментарии
Автор

Thank you, this was helpful. I am having one issue, where It only accepts up to 9 numbers as valid, anything over that and its goes to the else statement and says invalid. Anyone have any idea where I might have messed?

zeropanda