Click here to Skip to main content
15,920,630 members
Home / Discussions / C#
   

C#

 
AnswerRe: Hashtable/IDictionary - getHashCode and Equals Pin
Luc Pattyn19-Apr-11 0:02
sitebuilderLuc Pattyn19-Apr-11 0:02 
The key value is what is used for definining the functionality; the hash value is used for optimizing the performance.

IDictionary requires all keys to be different, that is all. Different keys may result in the same hash value, as the key can have any size, and a hash is just a 32-bit integer, so you can't have an infinite number of different hash values.

And please use PRE tags, I don't read unformatted code...

Smile | :)
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.

AnswerCORRECTION - Dictionary did throw an ArgumentException if insert two items where Equals returned true Pin
devvvy24-Apr-11 23:43
devvvy24-Apr-11 23:43 
QuestionWhere to Place FullAddress Pin
Anubhava Dimri18-Apr-11 21:24
Anubhava Dimri18-Apr-11 21:24 
AnswerRe: Where to Place FullAddress Pin
Wayne Gaylard18-Apr-11 21:32
professionalWayne Gaylard18-Apr-11 21:32 
AnswerRe: Where to Place FullAddress Pin
Keith Barrow18-Apr-11 22:39
professionalKeith Barrow18-Apr-11 22:39 
GeneralRe: Where to Place FullAddress Pin
Anubhava Dimri18-Apr-11 22:46
Anubhava Dimri18-Apr-11 22:46 
GeneralRe: Where to Place FullAddress Pin
Keith Barrow18-Apr-11 22:57
professionalKeith Barrow18-Apr-11 22:57 
GeneralRe: Where to Place FullAddress Pin
Anubhava Dimri18-Apr-11 23:22
Anubhava Dimri18-Apr-11 23:22 
GeneralRe: Where to Place FullAddress Pin
Dave Kreskowiak19-Apr-11 1:49
mveDave Kreskowiak19-Apr-11 1:49 
GeneralRe: Where to Place FullAddress Pin
Pete O'Hanlon19-Apr-11 2:30
mvePete O'Hanlon19-Apr-11 2:30 
AnswerRe: Where to Place FullAddress Pin
jschell19-Apr-11 8:56
jschell19-Apr-11 8:56 
AnswerRe: Where to Place FullAddress Pin
Prasanta_Prince19-Apr-11 22:52
Prasanta_Prince19-Apr-11 22:52 
Questionwindows service with digital certificate token Pin
piticcotoc18-Apr-11 3:52
piticcotoc18-Apr-11 3:52 
AnswerRe: windows service with digital certificate token Pin
#realJSOP18-Apr-11 5:32
professional#realJSOP18-Apr-11 5:32 
GeneralRe: windows service with digital certificate token Pin
piticcotoc18-Apr-11 23:00
piticcotoc18-Apr-11 23:00 
AnswerRe: windows service with digital certificate token Pin
BobJanova18-Apr-11 23:13
BobJanova18-Apr-11 23:13 
GeneralRe: windows service with digital certificate token Pin
piticcotoc18-Apr-11 23:15
piticcotoc18-Apr-11 23:15 
QuestionRe: windows service with digital certificate token Pin
#realJSOP19-Apr-11 3:36
professional#realJSOP19-Apr-11 3:36 
AnswerRe: windows service with digital certificate token Pin
#realJSOP19-Apr-11 3:40
professional#realJSOP19-Apr-11 3:40 
QuestionHow to paste clipboard contents to another app window? Pin
John-ph18-Apr-11 1:38
John-ph18-Apr-11 1:38 
AnswerRe: How to paste clipboard contents to another app window? Pin
Eddy Vluggen18-Apr-11 2:23
professionalEddy Vluggen18-Apr-11 2:23 
AnswerRe: How to paste clipboard contents to another app window? Pin
Luc Pattyn18-Apr-11 2:26
sitebuilderLuc Pattyn18-Apr-11 2:26 
QuestionHuge Xml Document(more than 10GB) import to Sql Server 2005 Pin
ntiin18-Apr-11 0:18
ntiin18-Apr-11 0:18 
AnswerRe: Huge Xml Document(more than 10GB) import to Sql Server 2005 PinPopular
Ravi Sant18-Apr-11 1:14
Ravi Sant18-Apr-11 1:14 
QuestionFxCop Performance Warning CA1822 Pin
Subin Mavunkal17-Apr-11 23:32
Subin Mavunkal17-Apr-11 23:32 

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.