title: Difference between Activator.CreateInstance() and typeof(T).InvokeMember() with BindingFlags.CreateInstance
body: <p>Forgive me if this question has already been asked and answered.</p>
  
  <p>Given a class of type T, what is the difference between the following?</p>
  
  <pre><code>T myObj = Activator.CreateInstance&lt;T&gt;();
  
  T myObj = typeof(T).InvokeMember(null, BindingFlags.CreateInstance, null, null, null);
  </code></pre>
  
  <p>Is one solution preferred over the other?</p>