I started to learn about Operator overloading, and in an example code that I found those two methods were (public override bool equals(object obj)
and public override int gethashcode()
). I didn't understand why they are there because when I dubugged this program, I didn't see that the compiler goes into them. I don't know what they are doing or what am I overriding.
Can someone please help me and explain it?