title: Calling generic method using reflection in .NET
body: <p>I have a question. Is it possible to call generic method using reflection in .NET?
  I tried the following code </p>
  
  <pre><code>var service = new ServiceClass();
  Type serviceType = service.GetType();
  MethodInfo method = serviceType.GetMethod("Method1", new Type[]{});
  method.MakeGenericMethod(typeof(SomeClass));
  var result = method.Invoke(service, null);
  </code></pre>
  
  <p>But it throws the following exception "Late bound operations cannot be performed on types or methods for which ContainsGenericParameters is true."</p>