title: Invoke generics overloaded method using reflection
body: <p>I need to invoke an overloaded method using reflection.
  My classes as below:</p>
  
  <pre><code>public static Transformer
  {
      //Overloaded method with generics parameter. First Transform Method
      public  static TranformerResult  Transform&lt;T&gt;(object [] entities,
          List&lt;T&gt;  dataContract) where T:class
      {
          return transformerResult;
      }
  
      //Overloaded method without generics parameter. Second Transform Method
      public static TranformerResult  Transform(object  entities,
          Type dataContract) 
      {
          return transformerResult;
      }
  }   
  
  public class TransformerResult
  {
      public List&lt;T&gt; GetTypes&lt;T&gt;() where T:class
      {
      }
  }
  </code></pre>
  
  <p>I tried to invoke first Transform method with below syntax:</p>
  
  <pre><code>GetMethod(“Transform”,(BindingFlags.Static | BindingFlags.Public),
      null, new Type[](){typeof(object[]),typeof(List&lt;Type&gt;}, null)
  </code></pre>
  
  <p>But I am getting second Transform method.</p>
  
  <p>My intention is to invoke GetType on transformerResult . The transformerResult is an object which returns invocation of first transform method.</p>
  
  <p>Can any one help me to write the C# code to achieve my intention?</p>
  
  <p>Thanks,
  Mahir</p>