title: How to get constructor as MethodInfo using Reflection
body: <p>The constructor looks like this:</p>
  
  <pre><code>public NameAndValue(string name, string value)
  </code></pre>
  
  <p>I need to get it as a MethodInfo using Reflection. It tried the following, but it does not find the constructor (<code>GetMethod</code> returns <code>null</code>). </p>
  
  <pre><code>MethodInfo constructor = typeof(NameAndValue).GetMethod(".ctor", new[] { typeof(string), typeof(string) });
  </code></pre>
  
  <p><strong>What am I doing wrong?</strong></p>