title: check for valid number input - console application
body: <p>I have a little problem with a simple console application in which i would like to detect if the user inputs a correctly formatted numerical value. 
  That is, values such as 1212sss or anything like asjkq12323 or a single character is not accepted. I would like to only accept pure integer values.</p>
  
  <p>Here is what i have tried </p>
  
  <pre><code>bool detectNumber(string s)
  {
     int value=0;
     Int.TryParse(s,out value);
     return (value!=0)?true:false;
  }
  </code></pre>
  
  <p>I appreciate any help. Thank you soooo much,,,,,</p>