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

C#

 
GeneralRe: Right tool for the job Pin
Christian Graus6-Sep-07 3:10
protectorChristian Graus6-Sep-07 3:10 
AnswerRe: Right tool for the job Pin
Rick van Woudenberg6-Sep-07 9:17
Rick van Woudenberg6-Sep-07 9:17 
QuestionHashtable vs Dictionary. Pin
nasambur6-Sep-07 2:06
nasambur6-Sep-07 2:06 
AnswerRe: Hashtable vs Dictionary. Pin
Sandeep Akhare6-Sep-07 2:12
Sandeep Akhare6-Sep-07 2:12 
AnswerRe: Hashtable vs Dictionary. Pin
Pete O'Hanlon6-Sep-07 2:49
mvePete O'Hanlon6-Sep-07 2:49 
AnswerRe: Hashtable vs Dictionary. Pin
Matthew Cuba6-Sep-07 4:47
Matthew Cuba6-Sep-07 4:47 
GeneralRe: Hashtable vs Dictionary. Pin
Jason Hanford-Smith6-Sep-07 7:13
Jason Hanford-Smith6-Sep-07 7:13 
GeneralRe: Hashtable vs Dictionary. Pin
Matthew Cuba6-Sep-07 7:32
Matthew Cuba6-Sep-07 7:32 
Jason Hanford-Smith wrote:
This is probably something to do with the fact that Hashtables have to box/unbox their data (both key AND value), whereas a Dictionary is strongly-typed.


Not sure I follow you on this. It was my understanding that retrieval of an element from a Hashtable is O(1). In both instances (whether I set the initial capacity or not), I've added 10,000,000 items to the Hashtable. I expected it to take longer to hashtable.add to the one where I didn't specify an initial capacity, as the Add is O(n) if Count>Capacity (it is O(1) otherwise), but on retrieval... well, I'd expect similar box/unbox activity to be done on the Hashtable in both instances.

It isn't enough to do well in life.
One must do good when and where one can.
Otherwise, what's the point?

GeneralRe: Hashtable vs Dictionary. Pin
Jason Hanford-Smith6-Sep-07 7:43
Jason Hanford-Smith6-Sep-07 7:43 
GeneralRe: Hashtable vs Dictionary. Pin
Matthew Cuba6-Sep-07 7:53
Matthew Cuba6-Sep-07 7:53 
GeneralRe: Hashtable vs Dictionary. Pin
Jason Hanford-Smith6-Sep-07 9:12
Jason Hanford-Smith6-Sep-07 9:12 
GeneralRe: Hashtable vs Dictionary. Pin
Matthew Cuba6-Sep-07 9:18
Matthew Cuba6-Sep-07 9:18 
QuestionFlickering PictureBoxes in C# Pin
Ermak866-Sep-07 1:59
Ermak866-Sep-07 1:59 
AnswerRe: Flickering PictureBoxes in C# Pin
Christian Graus6-Sep-07 2:11
protectorChristian Graus6-Sep-07 2:11 
GeneralRe: Flickering PictureBoxes in C# Pin
Ermak866-Sep-07 2:14
Ermak866-Sep-07 2:14 
GeneralRe: Flickering PictureBoxes in C# Pin
Christian Graus6-Sep-07 2:39
protectorChristian Graus6-Sep-07 2:39 
QuestionCash for Help! Pin
MicealG6-Sep-07 1:42
MicealG6-Sep-07 1:42 
JokeRe: Cash for Help! Pin
Sandeep Akhare6-Sep-07 1:46
Sandeep Akhare6-Sep-07 1:46 
GeneralRe: Cash for Help! Pin
MicealG6-Sep-07 1:50
MicealG6-Sep-07 1:50 
GeneralRe: Cash for Help! [modified] Pin
Sandeep Akhare6-Sep-07 2:00
Sandeep Akhare6-Sep-07 2:00 
GeneralRe: Cash for Help! Pin
MicealG6-Sep-07 3:37
MicealG6-Sep-07 3:37 
AnswerRe: Cash for Help! Pin
Ravi Bhavnani6-Sep-07 1:54
professionalRavi Bhavnani6-Sep-07 1:54 
GeneralStill No Answer Pin
MicealG6-Sep-07 2:01
MicealG6-Sep-07 2:01 
AnswerRe: Cash for Help! Pin
J4amieC6-Sep-07 3:53
J4amieC6-Sep-07 3:53 
GeneralRe: Cash for Help! Pin
MicealG6-Sep-07 3:57
MicealG6-Sep-07 3:57 

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.