title: Determine if a string is greater than another string
body: <p>I have two strings</p>
  
  <pre><code> string A = "1.0.0.0";
   string B = "1.0.0.1";
  </code></pre>
  
  <p>I need to evaluate somehow that B is greater than A (version wise) either converting those two strings to integers or decimals or something.</p>
  
  <p>I tried the following </p>
  
  <pre><code>Decimal S = Convert.ToDecimal(A);
  int S = Convert.ToInt32(A);
  </code></pre>
  
  <p>but keep getting the following error, "Input string was not in a correct format."</p>
  
  <p>Any help will be appreciated.</p>