Click here to Skip to main content
15,895,256 members
Home / Discussions / C#
   

C#

 
GeneralRe: Enhanced Listbox Pin
Anthony Mushrow17-Dec-07 15:35
professionalAnthony Mushrow17-Dec-07 15:35 
GeneralRe: Enhanced Listbox Pin
Luc Pattyn17-Dec-07 15:38
sitebuilderLuc Pattyn17-Dec-07 15:38 
GeneralRe: Enhanced Listbox Pin
tcsoccerman18-Dec-07 15:18
tcsoccerman18-Dec-07 15:18 
GeneralRecursively calling a generic method with runtime parameters Pin
Skippums17-Dec-07 12:38
Skippums17-Dec-07 12:38 
GeneralRe: Recursively calling a generic method with runtime parameters Pin
PIEBALDconsult17-Dec-07 16:14
mvePIEBALDconsult17-Dec-07 16:14 
QuestionHow to enter foreign key values to combobox Pin
AndrusM17-Dec-07 10:30
AndrusM17-Dec-07 10:30 
AnswerRe: How to enter foreign key values to combobox Pin
darkelv17-Dec-07 16:04
darkelv17-Dec-07 16:04 
GeneralReflection with Generic Lists [modified] Pin
DaveyM6917-Dec-07 9:23
professionalDaveyM6917-Dec-07 9:23 
If I have these classes...
public class TestClass
{
        //Properties etc.. to go here
}

public class TestCollection : List<TestClass>
{
}

... and I pass an instance of the TestCollection class to this...
public static void MyMethod(object ListObject)
{
}

... I can use reflection to get loads of info about the TestCollection (ListObject) class.

What I can't figure out is how to use reflection to get the <T> (in this case TestClass) as this is the class I need to know about the properties for.

Dave
modified on Monday, December 17, 2007 3:38:19 PM

GeneralRe: Reflection with Generic Lists Pin
Ed.Poore17-Dec-07 11:31
Ed.Poore17-Dec-07 11:31 
GeneralRe: Reflection with Generic Lists Pin
DaveyM6918-Dec-07 0:33
professionalDaveyM6918-Dec-07 0:33 
GeneralRe: Reflection with Generic Lists Pin
Ed.Poore18-Dec-07 10:04
Ed.Poore18-Dec-07 10:04 
GeneralRe: Reflection with Generic Lists Pin
DaveyM6918-Dec-07 11:18
professionalDaveyM6918-Dec-07 11:18 
GeneralRe: Reflection with Generic Lists Pin
Ed.Poore18-Dec-07 14:23
Ed.Poore18-Dec-07 14:23 
GeneralRe: Reflection with Generic Lists Pin
Ed.Poore18-Dec-07 14:44
Ed.Poore18-Dec-07 14:44 
GeneralRe: Reflection with Generic Lists [modified] Pin
DaveyM6919-Dec-07 0:39
professionalDaveyM6919-Dec-07 0:39 
GeneralRe: Reflection with Generic Lists Pin
Ed.Poore19-Dec-07 4:23
Ed.Poore19-Dec-07 4:23 
GeneralRe: Reflection with Generic Lists Pin
Ed.Poore19-Dec-07 13:19
Ed.Poore19-Dec-07 13:19 
GeneralRe: Reflection with Generic Lists Pin
DaveyM6920-Dec-07 0:04
professionalDaveyM6920-Dec-07 0:04 
GeneralRe: Reflection with Generic Lists Pin
Ed.Poore20-Dec-07 0:09
Ed.Poore20-Dec-07 0:09 
GeneralTranslatation Pin
mehrdadc4817-Dec-07 8:26
mehrdadc4817-Dec-07 8:26 
GeneralRe: Translatation Pin
Judah Gabriel Himango17-Dec-07 10:34
sponsorJudah Gabriel Himango17-Dec-07 10:34 
GeneralRe: Translatation Pin
Anthony Mushrow17-Dec-07 14:35
professionalAnthony Mushrow17-Dec-07 14:35 
Generalcustom form Pin
netJP12L17-Dec-07 7:18
netJP12L17-Dec-07 7:18 
GeneralRe: custom form Pin
Skippums17-Dec-07 9:20
Skippums17-Dec-07 9:20 
GeneralRe: custom form Pin
netJP12L17-Dec-07 10:27
netJP12L17-Dec-07 10:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.