HashSet Iterating While Removing Items in C#
<p>I have a hashset in C# that Iam removing from if a condition is met while iterating though the hashset and cannot do this using a froeach loop as below.</p>

<pre>
foreach (String hashVal in hashset) 
{
     if (hashVal == "somestring") 
     {
            hash.Remove("somestring");
     }
}
</pre>

<p>Can you help?</p>

<p>Thanks            </p>
