How to compare DictionaryEntry value faster than 'foreach' looping
<p>currently I use this to search a new string and compare with dictionary collection</p>

<pre><code>foreach (DictionaryEntry value in hd)              
{ 
    if (value == newWordIn)
    {
        // assign existing word
    } 
    else 
    {
        // assign new word into collection
    }
}
</code></pre>

<p>hd contain so many key and make looping very long.
Anything can I do to make it fast checking and do not wait so long for check dictionary collection?</p>

<p>Thanks for suggestion.</p>
