Click to See Complete Forum and Search --> : Query: GetHashCode - meaning, usage


gsmurthy30
August 13th, 2008, 06:23 AM
i am unable to understand the meaning of GetHashCode(); also, can anyone give some samples of its usage in real time scenarios.

darwen
August 13th, 2008, 06:25 AM
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 ('http://msdn.microsoft.com/en-us/library/system.object.gethashcode.aspx') which has a pretty good explanation.

Darwen.