title: Using C# Linq to return first index of null/empty occurrence in an array
body: <p>I have an array of strings called "Cars"</p>
  
  <p>I would like to get the first index of the array is either null, or the value stored is empty.  This is what I got so far:</p>
  
  <pre><code>private static string[] Cars;
  Cars = new string[10];
  var result = Cars.Where(i =&gt; i==null || i.Length == 0).First(); 
  </code></pre>
  
  <p>But how do I get the first INDEX of such an occurrence?</p>
  
  <p>For example: </p>
  
  <pre><code>Cars[0] = "Acura"; 
  </code></pre>
  
  <p>then the index should return 1 as the next available spot in the array.</p>