LinQ Statement for filterings
<p>Im trying to filter out an <code>ObservableCollection&lt;MainBusinessObject&gt;</code> where I need to filter all items in the collection that have <code>Subobject.PropertyX == true</code>.</p>

<pre><code>  MainBusinessObject 
     - PropertyA int
     - PropertyB string
     - ListOfSubobject ObservableCollection&lt;Subobject&gt;

  Subobject
     - PropertyX bool
     - PropertyY int
     - PropertyZ - string
</code></pre>

<p>I really want to stay away from looping and if statements, but I can't seem to get the LinQ statements right. This is what I have so far:</p>

<pre><code>return (MainBusinessObjectCollection) 
          listOfMainBusinessObject.Where(x =&gt;
           (x as MainBusinessObject).CanBePartitioned == true);
</code></pre>

<p><strong>EDIT</strong>
I need to filter out the <code>ListOfSubobject</code> from the main business object</p>
