title: Get empty slot with lowest index from an array
body: <p>I am using .NET 3.5. What method of the Array class is best for returning a empty index in an array (which can then be used for populating). The <code>Single/SingleOrDefault()</code> methods look good, but if there is more than one empty slot, I want the first with the lowest index.</p>
  
  <p>EDIT: This is pretty easy with a loop, but I am looking at ways to do this in LINQ.</p>
  
  <p>My current result in code is this:</p>
  
  <pre><code>              var x = from s in BaseArray
                      where s == null
                      select s;
  </code></pre>
  
  <p>But not tested and not sure how it will behave (will get more than one result in an empty array).</p>
  
  <p>Thanks</p>