C# find the length of the longest substring : <p>I want to get the length of the longest substring in a string separated by ","</p>

<p>For example:</p>

<blockquote>
  <p>test1,test11,test111 -> length of test111 -> 7</p>
</blockquote>
