title: System.Reflection.AmbiguousMatchException: 'Ambiguous match found.'
body: <p>I am trying to get the <code>MethodInfo</code> from a method <code>TableExists&lt;T&gt;</code> so I can call it with a type.</p>
  
  <p>The method is declared inside <code>OrmLiteSchemaApi</code> class.  There are 2 overloads:</p>
  
  <pre><code>public static bool TableExists&lt;T&gt;(this IDbConnection dbConn)
  {
    // code omitted
  }
  
  public static bool TableExists(this IDbConnection dbConn, string tableName, string schema = null)
  {
    // code omitted
  }
  </code></pre>
  
  <p>I am trying to get the <code>MethodInfo</code> like this:</p>
  
  <pre><code>var tableMethod = typeof(OrmLiteSchemaApi).GetMethod("TableExists");
  </code></pre>
  
  <p>But it generates exception:</p>
  
  <blockquote>
    <p>System.Reflection.AmbiguousMatchException: 'Ambiguous match found.'</p>
  </blockquote>
  
  <p>I could only find an old question related to this that suggested to pass an empty object array as parameter but this doesn't seem to work for .net core.</p>
  
  <p>I guess I need to specify the specific overload but I am not sure exactly how.</p>
  
  <p>How do I get the <code>MethodInfo</code>?</p>