How does Dictionary<T> work with key objects that don't implement Equals and GetHashCode?

Posted by DayOne on Stack Overflow See other posts from Stack Overflow or by DayOne
Published on 2010-05-05T09:32:29Z Indexed on 2010/05/05 9:48 UTC
Read the original article Hit count: 155

Filed under:

If I place a key object in an Dictionary that doesn't implement Equals and GetHashCode how does the Dictionary ContainsKey work? By checking the references are equal?

Thanks

© Stack Overflow or respective owner

Related posts about c#