Click here to Skip to main content
15,911,142 members
Home / Discussions / C#
   

C#

 
GeneralRe: SaveFileDialog Pin
Mike Dimmick8-Mar-08 12:52
Mike Dimmick8-Mar-08 12:52 
GeneralMove Datagridview row up / down Pin
baranils8-Mar-08 10:08
baranils8-Mar-08 10:08 
GeneralRe: Move Datagridview row up / down Pin
Xmen Real 8-Mar-08 21:16
professional Xmen Real 8-Mar-08 21:16 
GeneralRe: Move Datagridview row up / down Pin
baranils8-Mar-08 21:27
baranils8-Mar-08 21:27 
Generalforecasting of crime Pin
hiraa8-Mar-08 9:50
hiraa8-Mar-08 9:50 
GeneralRe: forecasting of crime Pin
Colin Angus Mackay8-Mar-08 10:55
Colin Angus Mackay8-Mar-08 10:55 
GeneralCompiler error Pin
NewToAspDotNet8-Mar-08 9:12
NewToAspDotNet8-Mar-08 9:12 
GeneralRe: Compiler error Pin
Giorgi Dalakishvili8-Mar-08 9:23
mentorGiorgi Dalakishvili8-Mar-08 9:23 
GeneralRe: Compiler error Pin
Mike Dimmick8-Mar-08 13:51
Mike Dimmick8-Mar-08 13:51 
GeneralRe: Compiler error Pin
Jaiprakash M Bankolli8-Mar-08 22:23
Jaiprakash M Bankolli8-Mar-08 22:23 
GeneralRe: Justim error Pin
Luc Pattyn9-Mar-08 2:27
sitebuilderLuc Pattyn9-Mar-08 2:27 
GeneralRegular Expressions Pin
Jammer8-Mar-08 8:14
Jammer8-Mar-08 8:14 
GeneralRe: Regular Expressions Pin
pmarfleet8-Mar-08 9:46
pmarfleet8-Mar-08 9:46 
GeneralRe: Regular Expressions Pin
Jammer9-Mar-08 1:06
Jammer9-Mar-08 1:06 
GeneralRe: Regular Expressions Pin
Jammer9-Mar-08 2:01
Jammer9-Mar-08 2:01 
GeneralSave an HtmlElement Image to a file Pin
Ehsan Baghaki8-Mar-08 4:32
Ehsan Baghaki8-Mar-08 4:32 
GeneralRe: Save an HtmlElement Image to a file Pin
Taha_u6-Apr-08 20:46
Taha_u6-Apr-08 20:46 
GeneralSorting a specific field in array list of structs Pin
eran malish8-Mar-08 3:18
eran malish8-Mar-08 3:18 
Hey all!
I would love to get some help with the next subject:

I have an array list of structs. The structs contain 4 fileds. Now, I need to sort the array list by one of the fileds. The disired filed, that the array should be sorted by, is given by the user.

Now I indeed created a class of the struct with the 4 fileds, and created an array list of that struct in the main class. The struct class inherit the " IComparable" interface. Now from the main class i call the sort function.

The thing is - I don't know how to "inform" the toCompare method as for with filed from the 4 fileds to sort by?

Hope you understand. Thanks.
GeneralRe: Sorting a specific field in array list of structs Pin
Xmen Real 8-Mar-08 3:25
professional Xmen Real 8-Mar-08 3:25 
AnswerRe: Sorting a specific field in array list of structs Pin
Guffa8-Mar-08 6:08
Guffa8-Mar-08 6:08 
Generalvarible naming Pin
Mabre of the Tadadas8-Mar-08 2:35
Mabre of the Tadadas8-Mar-08 2:35 
GeneralRe: varible naming Pin
DaveyM698-Mar-08 2:42
professionalDaveyM698-Mar-08 2:42 
GeneralRe: varible naming Pin
Mabre of the Tadadas8-Mar-08 2:45
Mabre of the Tadadas8-Mar-08 2:45 
GeneralRe: varible naming Pin
DaveyM698-Mar-08 5:53
professionalDaveyM698-Mar-08 5:53 
GeneralRe: varible naming Pin
Mabre of the Tadadas8-Mar-08 9:55
Mabre of the Tadadas8-Mar-08 9:55 

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.