Click here to Skip to main content
15,913,854 members
Home / Discussions / C#
   

C#

 
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 
If you want my full solution it's here[^].

Created with VC# 2008 (am waiting for Imperial to get VS2008 Pro through their campus agreement).

Just had another thought, you could use attributes to set the sort order of properties, if the attribute doesn't exist then don't sort. Something like:

[Sort(0, SortOrder.Ascending)]
public string Name { get; set; }

[Sort(1, SortOrder.Descending)]
public DateTime DOB { get; set; }


(Example uses automatic properties, a fantastic feature).

DaveyM69 wrote:
The article you linked to is FASCINATING! It looks like the way to go. It'll keep me busy over xmas I'm sure.

It certainly is, I experimented with it for a rewrite of a DAL that I wrote for a company I worked for but LINQ seems to have more or less knocked this method on the head. Although it would be a very cool way to go.

It's these kind of problems which I enjoy helping out in, what with my degree and so on I don't have that much time for programming and that which I do do has been in Pascal and Assembler for the course (although I don't do any extra-curricular stuff like my fellows since it's simply a change of framework and syntax). And god-forbid in the near future some Java, I was offered a job by one of my lecturers at Imperial (Software Engineering lecturer, originally from the Computer Science department but now lecturing for Electrical & Electronic Engineering) and this unfortunately is in Java Dead | X|

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 
GeneralRe: custom form Pin
Pete O'Hanlon17-Dec-07 10:19
mvePete O'Hanlon17-Dec-07 10:19 
Generalremove property from inherited control Pin
Eli Nurman17-Dec-07 5:24
Eli Nurman17-Dec-07 5:24 
GeneralRe: remove property from inherited control Pin
m@u17-Dec-07 5:40
m@u17-Dec-07 5:40 
GeneralRe: remove property from inherited control Pin
Skippums17-Dec-07 6:48
Skippums17-Dec-07 6:48 
GeneralRe: remove property from inherited control Pin
Pete O'Hanlon17-Dec-07 9:10
mvePete O'Hanlon17-Dec-07 9:10 
GeneralRe: remove property from inherited control Pin
Eli Nurman17-Dec-07 9:21
Eli Nurman17-Dec-07 9:21 
Generalgenerating random dummy files Pin
Shani Aulakh17-Dec-07 5:23
Shani Aulakh17-Dec-07 5:23 
GeneralRe: generating random dummy files Pin
Kristian Sixhøj17-Dec-07 5:44
Kristian Sixhøj17-Dec-07 5:44 

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.