C# generic list <T> how to get the type of T?
- by Daok
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…