i am unable to understand the meaning of GetHashCode(); also, can anyone give some samples of its usage in real time scenarios.
Printable View
i am unable to understand the meaning of GetHashCode(); also, can anyone give some samples of its usage in real time scenarios.
It's used every time you use a Dictionary<> or a Hashtable.
Investigate these two classes and you'll find what it's there for.
Or why not google for GetHashCode ? It'll get you here which has a pretty good explanation.
Darwen.