3 ms·
Have you never written a class that you wanted to use as a key in a dictionary? You need to know the contract of GetHashCode to do this properly. If you don't
by barrkel 12y ago
Have you never written a class that you wanted to use as a key in a dictionary?
You need to know the contract of GetHashCode to do this properly. If you don't know the contract of GetHashCode, well, you simply don't know .NET very well. That's my professional opinion.
- scintill76 12y agoI don't know much C#, but can't one understand the contract without knowing the default implementation? I would agree understanding the contract is probably essential, but the implementation is not.