title: Activator.CreateInstance with private sealed class
body: <p>I'm trying to new up a LocalCommand instance which is a private class of System.Data.SqlClient.SqlCommandSet. I seem to be able to grab the type information just fine:</p>
  
  <pre><code>Assembly sysData = Assembly.Load("System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089");
  localCmdType = sysData.GetType("System.Data.SqlClient.SqlCommandSet+LocalCommand");
  </code></pre>
  
  <p>but Activator.CreateInstance throws an exception when I try to instantiate it:</p>
  
  <pre><code>object item = Activator.CreateInstance(localCmdType,
    new object[] { commandText, parameters, num7, commandType });
  </code></pre>
  
  <p>System.MissingMethodException: Constructor on type 'System.Data.SqlClient.SqlCommandSet+LocalCommand' not found.</p>
  
  <p>The constructor arguments match the signature I see in Reflector. Is new'ing up a private class with an internal ctor supported with a different CreateInstance overload or what?</p>