title: How to select a rectangle from List<Rectangle[]> with Linq
body: <p>I have a list of <code>DrawObject[]</code>. Each DrawObject has a <code>Rectangle</code> property. Here is my event:</p>
  
  <pre><code>List&lt;Canvas.DrawObject[]&gt; matrix;
  
  void Control_MouseMove ( object sender, MouseEventArgs e )
  {
      IEnumerable&lt;Canvas.DrawObject&gt; tile = Enumerable.Range( 0, matrix.Capacity - 1)
                                            .Where(row =&gt; Enumerable.Range(0, matrix[row].Length -1)
                                                   .Where(column =&gt; this[column, row].Rectangle.Contains(e.Location)))
                                            .????;
  }
  </code></pre>
  
  <p>I am not sure exactly what my final select command should be in place of the "????". Also, I was getting an error: <code>cannot convert IEnumerable&lt;int&gt; to bool</code>.  </p>
  
  <p>I've read several questions about performing a linq query on a list of arrays, but I can't quite get what is going wrong with this. Any help?  </p>
  
  <p><strong>Edit:</strong><br>
  Apologies for not being clear in my intentions with the implementation.  </p>
  
  <p>I intend to select the <code>DrawObject</code> that currently contains the mouse location.</p>