Hello!
Is it possible to create a List<T> class where T is a random type? This is what I would like to do (or something similar because this doesn't work):
After that, "list" should be a list that contained "SomeClass" classes.
Is it possible to create a List<T> class where T is a random type? This is what I would like to do (or something similar because this doesn't work):
Code:
Object object = (Object)(new SomeClass()); List<object.GetType()> list = new List<object.GetType()>;
Comment