Possible Duplicate:
How to use reflection to call generic Method?
I have a method with the below signature
public string Register<T>()
{
//code
}
which can be invoked like this
var result = Register<Employee>()
;
my requirement is to invoke the method by reading the type T from config file,
ie: While invoking, instead of hardcoding "Employee", i should be able to supply it dynamically by reading the config file.
Any idea on how to do it?