title: Can't find constructor on type; works in Watch
body: <p>This is the code I use:</p>
  
  <pre><code>Type type = /* retrieved Type */
  object arg = /* something that evaluates to null */
  MyClass obj = (MyClass)Activator.CreateInstance(type, arg);
  </code></pre>
  
  <p>I get a crash, that given constructor doesn't exist on type <strong>type</strong>.</p>
  
  <p>However, when I put this in Watch in Visual Studio 2008:</p>
  
  <pre><code>(MyClass)System.Activator.CreateInstance(type, null)
  </code></pre>
  
  <p>it creates the object as usual.</p>
  
  <p>I even tried replacing my code with the one I put in the Watch. It works - object gets created.</p>
  
  <p>My question: what's up with that?</p>
  
  <p>Edit: MyClass <strong><em>doesn't</em></strong> have any constructors - apart from pregenerated <em>parameterless</em> constructor.</p>
  
  <p>Edit 2: Using <code>new object[0]</code> instead of <code>null</code> still causes the same exception.</p>