Click here to Skip to main content
15,898,374 members
Home / Discussions / C#
   

C#

 
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 
QuestionSelected Node in a treeview Pin
Krazy Programmer8-Mar-08 2:12
Krazy Programmer8-Mar-08 2:12 
GeneralRe: Selected Node in a treeview Pin
Xmen Real 8-Mar-08 3:18
professional Xmen Real 8-Mar-08 3:18 
GeneralRe: Selected Node in a treeview Pin
Krazy Programmer9-Mar-08 20:48
Krazy Programmer9-Mar-08 20:48 
GeneralRe: Selected Node in a treeview Pin
Xmen Real 9-Mar-08 23:12
professional Xmen Real 9-Mar-08 23:12 
Questionplaying mp3 file using c# Pin
achari.ravi7-Mar-08 23:28
achari.ravi7-Mar-08 23:28 
GeneralRe: playing mp3 file using c# Pin
Sathesh Sakthivel7-Mar-08 23:29
Sathesh Sakthivel7-Mar-08 23:29 
GeneralRe: playing mp3 file using c# Pin
Vasudevan Deepak Kumar11-Mar-08 1:03
Vasudevan Deepak Kumar11-Mar-08 1:03 
AnswerRe: playing mp3 file using c# Pin
achari.ravi8-Mar-08 0:25
achari.ravi8-Mar-08 0:25 
GeneralRe: playing mp3 file using c# Pin
Christian Graus8-Mar-08 11:14
protectorChristian Graus8-Mar-08 11:14 
QuestionRunning an application Pin
nike_arh7-Mar-08 23:02
nike_arh7-Mar-08 23:02 

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.