this code throw exception while i am trying to update value ,first value only updated and then throw the exception \"Collection was modified; enumeration operation may not exec
You need to make copy of hh.Keys, because you are trying to change Hashtable which is invalid operation while enumerating its keys in the foreach loop.