Click here to Skip to main content
15,917,808 members
Home / Discussions / C#
   

C#

 
AnswerRe: T9 dictionary in c# Pin
Pete O'Hanlon25-Jun-07 1:55
mvePete O'Hanlon25-Jun-07 1:55 
AnswerRe: T9 dictionary in c# Pin
Christian Graus25-Jun-07 2:10
protectorChristian Graus25-Jun-07 2:10 
AnswerRe: T9 dictionary in c# Pin
Pete O'Hanlon25-Jun-07 2:19
mvePete O'Hanlon25-Jun-07 2:19 
AnswerRe: T9 dictionary in c# Pin
Dave Kreskowiak25-Jun-07 4:47
mveDave Kreskowiak25-Jun-07 4:47 
GeneralRe: T9 dictionary in c# Pin
Not Active25-Jun-07 5:11
mentorNot Active25-Jun-07 5:11 
AnswerRe: T9 dictionary in c# Pin
Dan Neely25-Jun-07 5:21
Dan Neely25-Jun-07 5:21 
QuestionObject as disctionary key Pin
AndrusM25-Jun-07 1:36
AndrusM25-Jun-07 1:36 
AnswerRe: Object as disctionary key Pin
originSH25-Jun-07 1:48
originSH25-Jun-07 1:48 
GeneralRe: Object as disctionary key Pin
AndrusM25-Jun-07 2:36
AndrusM25-Jun-07 2:36 
GeneralRe: Object as disctionary key Pin
Pete O'Hanlon25-Jun-07 3:01
mvePete O'Hanlon25-Jun-07 3:01 
GeneralRe: Object as disctionary key Pin
AndrusM25-Jun-07 3:16
AndrusM25-Jun-07 3:16 
AnswerRe: Object as disctionary key Pin
Guffa25-Jun-07 4:05
Guffa25-Jun-07 4:05 
The default implementation gives different hash codes for objects that contains the same data. That means that the hash code is based on the reference to the object, not the object itself.

You need to create a hash code based on the data in the object, otherwise the only way to locate the object in the collection is if you already have the reference to it.

---
single minded; short sighted; long gone;

GeneralRe: Object as disctionary key Pin
AndrusM25-Jun-07 4:27
AndrusM25-Jun-07 4:27 
AnswerRe: Object as disctionary key Pin
Guffa25-Jun-07 7:51
Guffa25-Jun-07 7:51 
GeneralRe: Object as disctionary key Pin
AndrusM26-Jun-07 0:05
AndrusM26-Jun-07 0:05 
AnswerRe: Object as disctionary key Pin
Guffa26-Jun-07 2:13
Guffa26-Jun-07 2:13 
GeneralRe: Object as disctionary key Pin
AndrusM26-Jun-07 4:47
AndrusM26-Jun-07 4:47 
AnswerRe: Object as disctionary key Pin
Guffa26-Jun-07 6:08
Guffa26-Jun-07 6:08 
GeneralRe: Object as disctionary key Pin
originSH25-Jun-07 4:30
originSH25-Jun-07 4:30 
GeneralRe: Object as disctionary key Pin
AndrusM25-Jun-07 5:31
AndrusM25-Jun-07 5:31 
GeneralRe: Object as disctionary key Pin
originSH25-Jun-07 5:45
originSH25-Jun-07 5:45 
QuestionThe modifier 'public' is not valid for this item. Pin
steffw25-Jun-07 1:35
steffw25-Jun-07 1:35 
AnswerRe: The modifier 'public' is not valid for this item. Pin
originSH25-Jun-07 1:52
originSH25-Jun-07 1:52 
GeneralRe: The modifier 'public' is not valid for this item. Pin
steffw25-Jun-07 2:54
steffw25-Jun-07 2:54 
AnswerRe: The modifier 'public' is not valid for this item. Pin
Guffa25-Jun-07 5:36
Guffa25-Jun-07 5:36 

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.