I would like to create a strongly type list and decide the type in runtime. This is my code.I thought it should work, but it doesn't :)

        Type elementType = Type.GetType(parts[0].Trim(),false,true);
        var elementsBeingSet = new List<elementType>();

would you have any ideat how to create a strongly typed list whose type I will decide in runtime ?

Duplicate: here are other versions:

10-12 00:28
查看更多