I have a class definition like this:
public class LuRequest<T>
{
...
}
I want to create a instance of it by assigning the type T dynamically like
Type t = OtherObject.GetType();
LuRequest< t> inst = new LuRequest<t>();
However it does not allow me do so, everything in the brackets need to be in compile time. Is there any way I can do that?
Thank you