Input Validity checks in C# console base application
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/4804968/how-can-i-validate-console-input-as-integers">How can I validate console input as integers?</a>  </p>
</blockquote>



<p>I am developing a console base application in C#. In which i want when a user prompt to enter the integer then user can type only integer and when an user prompt to enter string, he can only type string. Please help me.</p>

<p>Thanks in advance and regards.</p>
