Невозможно запустить модульные тесты в IDE PHPStorm

Лучше всего использовать TryParse:

Int32 _userInput;
if(Int32.TryParse (Console.Readline(), out _userInput) {// do the stuff on userInput}
30
задан Webnet 28 January 2014 в 21:13
поделиться