Click here to Skip to main content
16,007,809 members
Home / Discussions / C#
   

C#

 
GeneralRe: delegates and events Pin
jkohler24-Jan-09 6:48
jkohler24-Jan-09 6:48 
AnswerRe: delegates and events Pin
DaveyM6924-Jan-09 4:13
professionalDaveyM6924-Jan-09 4:13 
GeneralRe: delegates and events Pin
Luc Pattyn24-Jan-09 4:54
sitebuilderLuc Pattyn24-Jan-09 4:54 
AnswerRe: delegates and events Pin
Giorgi Dalakishvili24-Jan-09 4:41
mentorGiorgi Dalakishvili24-Jan-09 4:41 
QuestionUsing A Retrieved Type Pin
#realJSOP24-Jan-09 2:24
professional#realJSOP24-Jan-09 2:24 
AnswerRe: Using A Retrieved Type Pin
User 665824-Jan-09 2:27
User 665824-Jan-09 2:27 
GeneralRe: Using A Retrieved Type Pin
#realJSOP24-Jan-09 2:28
professional#realJSOP24-Jan-09 2:28 
GeneralRe: Using A Retrieved Type Pin
User 665824-Jan-09 2:36
User 665824-Jan-09 2:36 
Ah, now I understand what you're trying to do.
In this case I don't think you get around some mapping mechanism and reflection, something like (defined in a XML file or whatever):

"Employee2" -> Property1 x Property2


But that still requires some knowledge about the types and properties being used.

Maybe you can use attributes and reflection to get a list of all the necessary properties to take into account when adding them to the listview. Something like this:

[ListViewProps("Propery1", "Not Applicable")]
class Employee1
{

}

[ListViewProps("Propery1", "Property2")]
class Employee2
{

}


And then doing some reflection magic to automatically get the values of the properties

modified 12-Sep-18 21:01pm.

AnswerRe: Using A Retrieved Type Pin
DaveyM6924-Jan-09 2:35
professionalDaveyM6924-Jan-09 2:35 
GeneralRe: Using A Retrieved Type Pin
User 665824-Jan-09 2:39
User 665824-Jan-09 2:39 
GeneralRe: Using A Retrieved Type Pin
DaveyM6924-Jan-09 2:48
professionalDaveyM6924-Jan-09 2:48 
GeneralRe: Using A Retrieved Type Pin
#realJSOP24-Jan-09 3:10
professional#realJSOP24-Jan-09 3:10 
GeneralRe: Using A Retrieved Type Pin
#realJSOP24-Jan-09 3:13
professional#realJSOP24-Jan-09 3:13 
AnswerRe: Using A Retrieved Type Pin
DaveyM6925-Jan-09 0:42
professionalDaveyM6925-Jan-09 0:42 
GeneralRe: Using A Retrieved Type Pin
#realJSOP26-Jan-09 2:56
professional#realJSOP26-Jan-09 2:56 
GeneralRe: Using A Retrieved Type Pin
DaveyM6926-Jan-09 3:50
professionalDaveyM6926-Jan-09 3:50 
GeneralRe: Using A Retrieved Type Pin
#realJSOP26-Jan-09 5:28
professional#realJSOP26-Jan-09 5:28 
GeneralRe: Using A Retrieved Type Pin
DaveyM6926-Jan-09 10:02
professionalDaveyM6926-Jan-09 10:02 
GeneralRe: Using A Retrieved Type Pin
DaveyM6926-Jan-09 4:11
professionalDaveyM6926-Jan-09 4:11 
AnswerRe: Using A Retrieved Type Pin
DaveyM6926-Jan-09 11:26
professionalDaveyM6926-Jan-09 11:26 
Questionİf one array Label Enabled=false Pin
ammoti24-Jan-09 1:51
ammoti24-Jan-09 1:51 
GeneralRe: İf one array Label Enabled=false Pin
Guffa24-Jan-09 9:12
Guffa24-Jan-09 9:12 
GeneralRe: İf one array Label Enabled=false Pin
ammoti24-Jan-09 10:52
ammoti24-Jan-09 10:52 
AnswerRe: İf one array Label Enabled=false Pin
Guffa24-Jan-09 12:19
Guffa24-Jan-09 12:19 
GeneralRe: İf one array Label Enabled=false Pin
ammoti24-Jan-09 12:51
ammoti24-Jan-09 12:51 

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.