title: How to prevent a System.IndexOutOfRangeException in a LINQ WHERE?
body: <p>I'm facing this exception when I'm using <code>String.Split</code> with random strings.</p>
  
  <pre><code>List&lt;string&gt; linhas = new List&lt;string&gt;();
  
  linhas.Add("123;abc");
  linhas.Add("456;def");
  linhas.Add("789;ghi");
  linhas.Add("chocolate");
  
  var novas = linhas.Where(l =&gt; l.ToString().Split(';')[1]=="def");
  </code></pre>