Click here to Skip to main content
15,913,055 members
Home / Discussions / C#
   

C#

 
GeneralRe: visual c# implementation of graphs Pin
sins616™27-Jan-08 15:15
sins616™27-Jan-08 15:15 
Questionvisual c# implementation of graphs Pin
sins616™27-Jan-08 14:59
sins616™27-Jan-08 14:59 
GeneralRe: visual c# implementation of graphs Pin
John_Adams27-Jan-08 18:11
John_Adams27-Jan-08 18:11 
GeneralRe: visual c# implementation of graphs Pin
sins616™27-Jan-08 23:20
sins616™27-Jan-08 23:20 
GeneralRe: visual c# implementation of graphs Pin
Pete O'Hanlon28-Jan-08 0:16
mvePete O'Hanlon28-Jan-08 0:16 
GeneralRe: visual c# implementation of graphs Pin
sins616™28-Jan-08 0:23
sins616™28-Jan-08 0:23 
QuestionWhat is GetHashCode() Pin
Nadia Monalisa27-Jan-08 12:39
Nadia Monalisa27-Jan-08 12:39 
AnswerRe: What is GetHashCode() Pin
Luc Pattyn27-Jan-08 13:37
sitebuilderLuc Pattyn27-Jan-08 13:37 
Hi,

I haven't used it explicitly so far, but this is how I remember it:

every class should implement a hash algorithm, turning its data into a single number.
There are some rules, e.g. the result should be immutable (once set, it must remain what it is).

It is used by some classes, e.g. HashTable will call it to determine how/where to store
a reference; taking care of a well spread distribution improves the efficiency of classes
such as HashTable. If you don't (say you always return 42) then HashTable will still operate
correctly but much less efficiently.

Of course, if you suspect you don't need hashing at all, you don't have to worry; by
inheritance you'll get the default implementation, so you are set.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

This month's tips:
- before you ask a question here, search CodeProject, then Google;
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get;
- use PRE tags to preserve formatting when showing multi-line code snippets.


GeneralRe: What is GetHashCode() Pin
Nadia Monalisa27-Jan-08 14:08
Nadia Monalisa27-Jan-08 14:08 
GeneralRe: What is GetHashCode() Pin
Luc Pattyn27-Jan-08 14:41
sitebuilderLuc Pattyn27-Jan-08 14:41 
QuestionAsync. Socket Begin/EndReceive Loop Woes Pin
foahchon27-Jan-08 11:32
foahchon27-Jan-08 11:32 
QuestionAbout WebResourceProvider.. Pin
methhoo27-Jan-08 11:19
methhoo27-Jan-08 11:19 
GeneralRe: About WebResourceProvider.. Pin
pmarfleet27-Jan-08 12:06
pmarfleet27-Jan-08 12:06 
GeneralPassing strings between forms that are both open. Pin
Jacob Dixon27-Jan-08 10:39
Jacob Dixon27-Jan-08 10:39 
GeneralRe: Passing strings between forms that are both open. Pin
Paul Conrad27-Jan-08 10:41
professionalPaul Conrad27-Jan-08 10:41 
GeneralRe: Passing strings between forms that are both open. Pin
Jacob Dixon27-Jan-08 10:43
Jacob Dixon27-Jan-08 10:43 
GeneralRe: Passing strings between forms that are both open. Pin
Pete O'Hanlon27-Jan-08 10:59
mvePete O'Hanlon27-Jan-08 10:59 
GeneralRe: Passing strings between forms that are both open. Pin
Jacob Dixon27-Jan-08 11:08
Jacob Dixon27-Jan-08 11:08 
GeneralRe: Passing strings between forms that are both open. Pin
Pete O'Hanlon27-Jan-08 11:19
mvePete O'Hanlon27-Jan-08 11:19 
GeneralRe: Passing strings between forms that are both open. Pin
Jacob Dixon27-Jan-08 11:28
Jacob Dixon27-Jan-08 11:28 
GeneralRe: Passing strings between forms that are both open. Pin
Nadia Monalisa27-Jan-08 13:20
Nadia Monalisa27-Jan-08 13:20 
GeneralRe: Passing strings between forms that are both open. Pin
Jacob Dixon27-Jan-08 16:03
Jacob Dixon27-Jan-08 16:03 
GeneralRe: Passing strings between forms that are both open. Pin
Paul Conrad27-Jan-08 16:37
professionalPaul Conrad27-Jan-08 16:37 
GeneralRe: Passing strings between forms that are both open. Pin
Nadia Monalisa27-Jan-08 23:44
Nadia Monalisa27-Jan-08 23:44 
GeneralRe: Passing strings between forms that are both open. Pin
LongRange.Shooter28-Jan-08 8:08
LongRange.Shooter28-Jan-08 8:08 

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.