Implementing GetHashCode

Posted by dotnetdev on Stack Overflow See other posts from Stack Overflow or by dotnetdev
Published on 2010-05-22T22:46:25Z Indexed on 2010/05/22 22:50 UTC
Read the original article Hit count: 167

Filed under:

Hi,

What constitutes a good implementation of the GetHashCode method? I did some googling, and found some goodlines (MSDN) but it seems like the logic just manipulates two numbers stored as fields in the class. Is the actual logic this simple to implement this method?

© Stack Overflow or respective owner

Related posts about c#