Hello,
Let say I have a List< T > abc = new List< T >;
inside a class public class MyClass<T>//...
. Later, when I initialize the class the T because MyTypeObject1. So I have a generic list of List< MyTypeObject1 >
.
I would like to know, what type of object the list of my class contain. Example, the list called abc contain what type of object? I cannot do abc[0].GetType();
because the list might contain 0 element. How can I do it?