Substring Maximum Length
<p>I have strings of length greater than 150 characters. I want to delete the first 17 characters and leave the rest. I am using the Substring method in ASP.net 4.5 but I get the error message at str0: "System.ArgumentOutOfRangeException".</p>

<pre><code> public static string extract(string dirinfo)
 {
      Int32 lensub = Convert.ToInt32(dirinfo.Length);
      string str0 = dirinfo.Substring(17, lensub);
      return str0;
 } 
</code></pre>