GetHashCode and Equals override in C#

I was interviewing a candidate with 6+ years of years of experience and asked –
What is GetHashCode in C# .net. and where it’s used?
He replied it’s a memory address where the object is stored. I…
Source: Codementor

Leave a Reply

Your email address will not be published.