string input = Console.ReadLine(); int cond; Int32.TryParse(input, out cond);
int cond; object objIn=Console.In.ReadLine(); if(!Int32.TryParse(objIn,out cond)) { // If not a proper value }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)