title: Avoiding an ambiguous match exception
body: <p>I am invoking a static method <em>Parse</em> on a type via reflection because I do not know the type of the object at compile-time (I do know, however, it has a <em>Parse</em> method, taking a string).</p>
  
  <p>However, I am getting an ambiguous match exception, presumably because there are a lot of overloaded <em>Parse</em> methods each taking a single object (string, int, double etc.).</p>
  
  <p>How can I be more specific in my method invocation to ensure I reach the correct method (<em>Parse(string s)</em>) and the exception is not thrown.</p>
  
  <p>My code looks like this:</p>
  
  <pre><code>Type returnType = p.PropertyType;
  object value = returnType.GetMethod("Parse").Invoke(null, new string[] { "1" });
  </code></pre>