Is there a way in C# to get the definition of a type from a string? I'd like to use it as a generic type parameter.
This is what i'd like to achieve in the end.
string classname = "Class1";
GenericClass<Class1> gc = new GenericClass<Class1>();
gc.Method();
is there any possible way?
gc.Method(). This will be slow and the compiler will not be able to catch any errors you make. Are you sure that's what you need to do?