<p>Say I've got a string which contains a number. I want to check if this number is an integer.</p>
<h3>Examples</h3>
<pre><code>IsInteger(&quot;sss&quot;) =&gt; false 

IsInteger(&quot;123&quot;) =&gt; true

IsInterger(&quot;123.45&quot;) =&gt;false
</code></pre>

You can use int.
TryParse
. It will return a bool if it can parse the string and set your out parameter to the value
```
```
int val;
if(int.TryParse(inputString, out val))
{
    //dosomething
}
```
```