how to find the key from a hashtable by sending its value? can you help me with c# code sample

foreach (DictionaryEntry n in hashTableObject)
            {
                if(n.Value==value_you_want_to_compare) {
                   //you will get a key - n.Key
                   break;
                }
            }
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.