+ 2

Is it numeric or not.

Hello guys I'm triying to do a small calculator just for two numbers (that is my homework) in c# . but i need to control that the number1 or number2 which i will enter to the console is numeric or not. Anybody can help me ?

20th Oct 2017, 1:44 PM
Sercan Trs
Sercan Trs - avatar
3 Answers
+ 1
thank you bro :)
20th Oct 2017, 2:16 PM
Sercan Trs
Sercan Trs - avatar
+ 1
thank you luka :)
20th Oct 2017, 2:21 PM
Sercan Trs
Sercan Trs - avatar
0
use the Int32.TryParse method to do it
20th Oct 2017, 2:14 PM
Petr Hatina
Petr Hatina - avatar