title: Reflection in .NET
body: <pre><code>class Program
  {
      static void Main(string[] args)
      {
          Type doub = typeof(Doub);
          object result = doub.InvokeMember(&quot;Call&quot;, BindingFlags.InvokeMethod, null, null, new object[] { });
      }
  }
  
  public class Doub
  {
      public Collection&lt;string&gt; Call()
      {
          Collection&lt;string&gt; collection = new Collection&lt;string&gt;();
          return collection;
      }
  
      public Collection&lt;T&gt; Call&lt;T&gt;()
      {
          Collection&lt;T&gt; collection = new Collection&lt;T&gt;();
          return collection;
      }
  }
  </code></pre>
  <p>I tried to call the Call method, but the program cannot figure out which method to call. Error: (System.Reflection.AmbiguousMatchException: &quot;Ambiguous match found). How can you call exactly the Call() method of the class?</p>