title: EETypeLoadException when native code debugging is enabled
body: <p>When trying to find a nasty interop bug in a large c# solution I had to enable the 'native code debugging' switch.
  When native code debugging was on, I noticed that EETypeLoadException are thrown.</p>
  
  <p>I wondered if there were some issues with my interop code. So I dug in deeper. However, I finally tracked this down and slimmed my application all the way down to the following lines:</p>
  
  <pre><code>    public struct StructA
      {
          public ClassA classa;
      }
  
      public class ClassA
      {
          public StructA structa;
      }
  
      class Program
      {
          static void Main(string[] args)
          {
              ClassA e = null;
  
              Action d = () =&gt;
              {
                  e = null; 
              };
          }
      }
  </code></pre>
  
  <p>So only native code. And yet, if you run the above, for some reason an EETypeLoadException is thrown. 
  For all I know this exception is part of the actual type loading mechanism (the exception is handled, and without native debugging the code works as expected), but it does got me worried. 
  Can anyone shed some light on this issue? </p>