title: In C#, how to check whether a string contains an integer?
body: <p>I just want to know, whether a String variable <strong>contains a parsable</strong> positive integer value. I do NOT want to parse the value right now. </p>
  
  <p>Currently I am doing:</p>
  
  <pre><code>int parsedId;
  if (
      (String.IsNullOrEmpty(myStringVariable) ||
      (!uint.TryParse(myStringVariable, out parsedId))
  )
  {//..show error message}
  </code></pre>
  
  <p><strong>This is ugly - How to be more concise?</strong></p>
  
  <p>Note: I know about extension methods, but I wonder if there is something built-in.</p>