Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • GetHashCode() is designed for use in a hashtable, that's the sole point of this function. Commented Jun 17, 2010 at 14:26
  • 1
    @skolima - the MSDN documentation is inconsistent with that. Mutable objects may implement GetHashCode(), and should return different values as the object's value changes. Hashtables must use immutable keys. Hence, you can use GetHashCode() for something other than a hashtable. Commented Jun 17, 2010 at 14:58