Click here to Skip to main content
15,912,756 members
Home / Discussions / C#
   

C#

 
AnswerRe: Memory Consumption Pin
Rob Philpott9-Dec-09 0:56
Rob Philpott9-Dec-09 0:56 
GeneralRe: Memory Consumption Pin
abcurl9-Dec-09 1:07
abcurl9-Dec-09 1:07 
GeneralRe: Memory Consumption Pin
Rob Philpott9-Dec-09 1:11
Rob Philpott9-Dec-09 1:11 
GeneralRe: Memory Consumption Pin
Rob Philpott9-Dec-09 1:19
Rob Philpott9-Dec-09 1:19 
GeneralRe: Memory Consumption Pin
abcurl9-Dec-09 1:22
abcurl9-Dec-09 1:22 
Questionsorting arraylist of custom objects Pin
Shameer E.A.9-Dec-09 0:36
Shameer E.A.9-Dec-09 0:36 
AnswerRe: sorting arraylist of custom objects Pin
Abhinav S9-Dec-09 0:44
Abhinav S9-Dec-09 0:44 
AnswerRe: sorting arraylist of custom objects Pin
Rob Philpott9-Dec-09 1:03
Rob Philpott9-Dec-09 1:03 
You want to call .Sort on your ArrayList, the problem being though that Sort doesn't know how to compare two cards in order to do the sort.

To tell it this, you'll either need to extend 'card' to implement IComparable, or create a new seperate class which implements IComparer. Either way, you'll need to create a method which compares two cards. Compare suits first, and then if they are the same, the 'rank'.

Regards,
Rob Philpott.

QuestionApplication Freeze Pin
musefan9-Dec-09 0:29
musefan9-Dec-09 0:29 
AnswerRe: Application Freeze Pin
Member 33524189-Dec-09 0:43
Member 33524189-Dec-09 0:43 
GeneralRe: Application Freeze Pin
musefan9-Dec-09 1:08
musefan9-Dec-09 1:08 
QuestionGet Control at Point in another Window Pin
Programm3r9-Dec-09 0:18
Programm3r9-Dec-09 0:18 
QuestionSave Download DLL File Pin
dataminers8-Dec-09 23:55
dataminers8-Dec-09 23:55 
AnswerRe: Save Download DLL File Pin
N a v a n e e t h8-Dec-09 23:57
N a v a n e e t h8-Dec-09 23:57 
GeneralRe: Save Download DLL File Pin
Abhinav S9-Dec-09 3:26
Abhinav S9-Dec-09 3:26 
QuestionSocket.ReceiveTimeOut Problem Pin
lnmca8-Dec-09 23:35
lnmca8-Dec-09 23:35 
AnswerRe: Socket.ReceiveTimeOut Problem Pin
Programm3r9-Dec-09 0:22
Programm3r9-Dec-09 0:22 
GeneralRe: Socket.ReceiveTimeOut Problem Pin
lnmca9-Dec-09 0:27
lnmca9-Dec-09 0:27 
GeneralRe: Socket.ReceiveTimeOut Problem Pin
Programm3r9-Dec-09 0:44
Programm3r9-Dec-09 0:44 
GeneralRe: Socket.ReceiveTimeOut Problem Pin
lnmca9-Dec-09 0:57
lnmca9-Dec-09 0:57 
GeneralRe: Socket.ReceiveTimeOut Problem Pin
Programm3r9-Dec-09 1:10
Programm3r9-Dec-09 1:10 
GeneralRe: Socket.ReceiveTimeOut Problem Pin
lnmca9-Dec-09 1:14
lnmca9-Dec-09 1:14 
GeneralRe: Socket.ReceiveTimeOut Problem Pin
Programm3r9-Dec-09 1:21
Programm3r9-Dec-09 1:21 
AnswerRe: Socket.ReceiveTimeOut Problem Pin
Paulo Zemek9-Dec-09 2:31
Paulo Zemek9-Dec-09 2:31 
Questionerror in 'if' Pin
Muhammad Bilal Saleem Barkati8-Dec-09 23:33
Muhammad Bilal Saleem Barkati8-Dec-09 23:33 

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.