angedelamort
May 8th, 2008, 04:42 PM
Hello,
instead of trying to explain my question, here a simple example.
List<int> list = new List<int>();
Type listType = list.GetType();
Type listItemType = listType.GetTypeMagicly(); // <-- This is what I'm trying to get.
So, I'm trying to get the type used by the list. I know it's probably possible, since I'm able to see it in a string when debugging. I just don't know how to get the typeof(int).
Thanks in advance.
instead of trying to explain my question, here a simple example.
List<int> list = new List<int>();
Type listType = list.GetType();
Type listItemType = listType.GetTypeMagicly(); // <-- This is what I'm trying to get.
So, I'm trying to get the type used by the list. I know it's probably possible, since I'm able to see it in a string when debugging. I just don't know how to get the typeof(int).
Thanks in advance.