1 2 3 4 5 6 7 8 9 10
public class MyLogic<T> { private List<T> genList = null; public MyLogic() { Type genericListType = typeof(List<>).MakeGenericType(Activator.CreateInstance<T>().GetType()); genList = (List<T>)Activator.CreateInstance(genericListType); } }