<p>I have an object graph serialized to xaml.  A rough sample of what it looks like is:</p>

<pre><code>&lt;MyObject xmlns.... &gt;
    &lt;MyObject.TheCollection&gt;
        &lt;PolymorphicObjectOne .../&gt;
        &lt;HiImPolymorphic ... /&gt;
    &lt;/MyObject.TheCollection&gt;
&lt;/MyObject&gt;
</code></pre>

<p>I want to use Linq to XML in order to extract the serialized objects within the TheCollection.</p>

<p><strong>Note</strong>: <code>MyObject</code> may be named differently at runtime; I'm interested in any object that implements the same interface, which has a public collection called <code>TheCollection</code> that contains types of <code>IPolymorphicLol</code>.</p>

<p>The only things I know at runtime are the depth at which I will find the collection and that the collection element is named ``*.TheCollection`.  Everything else will change.</p>

<p>The xml will be retrieved from a database using Linq; if I could combine both queries so instead of getting the entire serialized graph and then extracting the collection objects I would just get back the collection that would be sweet.</p>

[{'answer_id': 45745, 'author': 'hakan', 'author_id': 3993, 'author_profile': 'https://Stackoverflow.com/users/3993', 'pm_score': 1, 'selected': False, 'text': "<p>I am not exactly sure about it but I believe GacRemove should do the same thing as gacutil  /u. So, it should be the path of your DLL. However it doesn't have to be the same DLL file. Copy of the original should suffice since what counts is the uniqueID of the DLL.</p>\n"}, {'answer_id': 45747, 'author': 'Espo', 'author_id': 2257, 'author_profile': 'https://Stackoverflow.com/users/2257', 'pm_score': 3, 'selected': True, 'text': '<p>I am using the <code>GacInstall</code> to publish my assemblies, however once installed into the gac, I sometimes delete my ‘temporary’ copy of the assemblies.</p>\n\n<p>And then, if I ever wanted to uninstall the assemblies from the gac I do not have the files at the original path. This is causing a problem since I cannot seem to get the <code>GacRemove</code> method to uninstall the assemblies unless I keep the original files.</p>\n\n<p>Conclusion: Yes, you need to specify the path to the original DLL. (And try to not move/delete it later). If you delete it, try to copy the file from the GAC to your original path and you should be able to uninstall it using <code>GacRemove</code>.</p>\n'}]
['https://Stackoverflow.com/questions/45732', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/-1/']