Dictionary/Hashmap......... what on earth is happening?
- by Tom
else if (!registryData.ContainsKey(kyInvolved))
{
keyInvolved = new RegistryKy(kyInvolved);
lock (registryDataLock)
{
registryData.Add(kyInvolved, keyInvolved);
}
processInvolved = new Proces(procInvolved);
keyInvolved.addProcessToDict(processInvolved);
}
kyInvolved is a String which represents a registry key. keyInvolved is the actual registry key object.
I'm being told that im adding a key which already exists, yet i have already checked to see whether it is in there or not???