❔ is a non-concurrent dictionary concurrent safe under alterations of only value?
Dictionary<string,object> ds;
string x; object z;
var y=ds[x]; // we know 'x' exists as a key.
ds[x]=z; // is it safe to change key x to a different value?
I don't care if other threads see either y or z under this scenario. All i care about is not getting runtime exceptions, or nonsensical results (eg, value for wrong key returned).
I know that modifying the keys in any way is very much not concurrent safe, and is handled correctly.
string x; object z;
var y=ds[x]; // we know 'x' exists as a key.
ds[x]=z; // is it safe to change key x to a different value?
I don't care if other threads see either y or z under this scenario. All i care about is not getting runtime exceptions, or nonsensical results (eg, value for wrong key returned).
I know that modifying the keys in any way is very much not concurrent safe, and is handled correctly.