title: Getting types in mscorlib 2.0.5.0 (aka Silverlight mscorlib) via reflection on?
body: <p>I am trying to add Silverlight support to my favorite programming langauge Nemerle. </p>
  
  <p>Nemerle , on compilation procedure, loads all types via reflection mainly in 2 steps</p>
  
  <p>1-) Uses Assembly.LoadFrom to load assembly
  2-) Usese  Assembly.GetTypes() to get the types</p>
  
  <p>Then at the end of compilation it emits the resolved types with Reflection.Emit.</p>
  
  <p>This procedure works for all assemblies including Silverlight ones except mscorlib of silverlight.</p>
  
  <p>In c# this fails:</p>
  
  <pre><code> var a = System.Reflection.Assembly.LoadFrom(@"c:\mscorlib.dll");
  </code></pre>
  
  <p>but this passes :</p>
  
  <pre><code>var a = System.Reflection.Assembly.ReflectionOnlyLoadFrom(@"c:\mscorlib.dll"); 
  </code></pre>
  
  <p>Bu in the latter , a.GetTypes() throws an exception sayin System.Object's parent does not exist.</p>
  
  <p>Is there a way out ?</p>