Click here to Skip to main content
15,889,216 members
Home / Discussions / C#
   

C#

 
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 
originSH wrote:
To work properly anything you use as a key must impliment GetHashCode().


Dictionary class does not use GetHashCode() at all!
Why I need to implement it ?

originSH wrote:
Your best bet would probably be to override ToString() on CacheKey to produce a string made up of the supplied components


Can I use binary or xml serializer for this or shoult I create some loop to concatenate values ?

originSH wrote:
You'd probably want to impliment the equality stuff too:


If I use string returned from ToString() as key, why to overload equals ?
In this case I can use string as distionary key and I think string comparison works OK .

Andrus

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 
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 
Questiongetting id of row Pin
tauras8125-Jun-07 1:26
tauras8125-Jun-07 1:26 

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.