A hash code is a numeric value that is used to insert and identify an object in a hash-based collection such as the Dictionary class, the Hashtable class, or a type derived from the DictionaryBase class. The GetHashCode method provides this hash code for algorithms that need quick checks of object equality........................from MSDN
If two object are equal than their hascode will be same but reverse is not true means if hashcode is same for than object may be different.
https://blogs.msdn.microsoft.com/ericlippert/2011/02/28/guidelines-and-rules-for-gethashcode/
If two object are equal than their hascode will be same but reverse is not true means if hashcode is same for than object may be different.
https://blogs.msdn.microsoft.com/ericlippert/2011/02/28/guidelines-and-rules-for-gethashcode/
No comments:
Post a Comment